performance
2 articles
-
Two suns, and the hour the world stopped at
Two maps were lit by two suns at once, and the one casting the shadows was not the one the weather system thought it owned. Fixing that meant choosing a single hour for the whole game — and the choice was made by photographing every map at five of them.
-
Rewriting the fog of war: three states, no objects
The first version put one object per tile on the map and switched them all on and off every frame. The new one is a grid of stamps and a single screen-sized quad that reads depth. Why the obvious implementation is the expensive one, and what the three states cost.