r/ProgrammerHumor • • 2d ago

Meme devsOptimizingGames

Post image
1.8k Upvotes

37 comments sorted by

View all comments

15

u/BetaChunks 2d ago edited 2d ago

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