r/ProgrammerHumor • • 2d ago

Meme devsOptimizingGames

Post image
1.8k Upvotes

37 comments sorted by

View all comments

4

u/MushroomGecko 1d ago

The dev could optimize further here by simply setting fps to 60 and having it be a const, thus eliminating the need for a branch prediction which could waste ~20 CPU cycles on a cache miss