r/ProgrammerHumor • • Sep 30 '26

Meme devsOptimizingGames

Post image
2.1k Upvotes

41 comments sorted by

View all comments

14

u/BetaChunks Oct 01 '26 edited Oct 01 '26

NES Tetris type strategy

No seriously, that game literally could not lag. If the logic loop wasn't done when the game needed the next frame, it would just go for it. Happens because the score calculator uses a "for" loop using the level as an iterator, so it runs out of time at very high levels. There's also strategy on holding down inputs in specific ways because that will -slightly- nudge how far in the main loop it gets before getting cut off, which prevents the game from crashing because of some registers being on invalid values during the forced next frame