All posts tagged with "loose lips sink the game engine"

Instancing, AZDO, and Performance Optimization

WARNING: This is a technical graphics rendering post! If you are not interested in the nitty gritty of OpenGL performance optimization and what I did this week, then what you should know is “Hey, we’re making the game faster!” and “Well, you should probably update your drivers if you haven’t done so already.” The fact of the matter is that this is a blog post that will be most interesting to people with an interest in graphics programming, but this is a game development blog after all, and this is game development!

(We’ve left a whacky animated gif at the bottom of this post as a reward for making it all the way through. No cheating! -ed.)

In unrelated news, you shouldn't let cultists run your farm.

In unrelated news, you shouldn’t let cultists run your farm.

One of the things that has been talked about recently in the graphics programming community is the problem of driver overhead. Every time a graphics programmer makes a drawing call to the video card, the driver sits in between your game and the video card and looks at everything the game sends it. It checks to make sure you didn’t feed it garbage and that everything is valid, so that you don’t end up crashing the computer in a fiery blaze of glory or a blue screen of death. These validations add up and take time – every time you switch states, every time you change textures, and every time you draw something, the little man in the driver needs to go through and sort it out. This takes time, and slows the game down.

{ read this article }

Posted in Clockwork Empires | Tagged , , , , , , , , ,
8 Comments

Modules, Interrupts, Memory Leaks

The Road to Early Access basically looks like the Road to El Dorado, except the musical numbers are worse. Right now I am still in a land where I have to actually sit down and do all the stuff I’ve been putting off for the course of the product. Two things that fall into this category are “putting modules in the corner of a building” and “interrupts.” Oh, and “fixing the memory leaks.”

In The Colonies there are unfortunate occasions wherein real estate looks bigger on the outside than it is on the inside. (See also: "Mad Architects Of The Frontier And Their Terrible Creations".)

In The Colonies there are unfortunate occasions wherein real estate looks bigger on the outside than it is on the inside. (See also: “Mad Architects Of The Frontier And Their Terrible Creations”.)

Putting modules in the corner of a building has been something that, since the start of the project, would blow up the game. There were a number of things causing problems here: first off, the code to actually handle the case of inserting the small “module footer” that forms the foundation of a module was blowing up if you put it in the corner of a map. This has been fixed. Second, when we finished a module’s foundation, we would delete the edges on the floor plan, and merge the leftmost and rightmost edges together. Obviously, this is not the right thing to do if a foundation piece is at the leftmost, or rightmost, edge of a blueprint – you end up collapsing two edges together that are at 90 degrees. So this has been fixed for the outside of modules. The inside of modules still breaks, because there is some funny business going on with how we construct interiors that I have yet to track down – but we’re making progress on long standing issues.

{ read this article }

Posted in Clockwork Empires | Tagged , , , , , , , , , , , , , , , , , , ,
14 Comments