Under the Hood RollerCoaster Tycoon Didn’t Optimize Code – It Optimized the Game Itself
RollerCoaster Tycoon (1999) simulated thousands of park guests on a Pentium. In Assembly. Written by one guy. Lars Thießen digs into how – and the details are wilder than you’d expect. Guests don’t pathfind. They wander blind until they stumble into a ride. “I can’t find the park exit” isn’t a bug – it’s the pathfinder hitting its performance budget and giving up. Game formulas were designed around powers of two so the CPU could bitshift instead of multiply. Every byte of memory was hand-picked per variable. The kicker: none of this works without the game designer and the programmer being the same person. Chris Sawyer didn’t just optimize code, he optimized the design itself around what the hardware could do. Most modern builders can’t touch that framerate with a thousand times the silicon. Absolute must-read.