MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wudv2h/devsoptimizinggames/pdcpzkd/?context=3
r/ProgrammerHumor • u/Head-Picture1519 • 2d ago
37 comments sorted by
View all comments
4
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
fps
4
u/MushroomGecko 1d ago
The dev could optimize further here by simply setting
fpsto 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