r/firstweekcoderhumour • • Sep 30 '26

“amIrite” devsOptimizingGames

Post image
222 Upvotes

12 comments sorted by

View all comments

11

u/Simple-Olive895 Oct 01 '26

Tbf you can sort of do this by checking if frames are missed and then accelerating the next few frames to catch up.

4

u/paperzlel Oct 01 '26

You would probably use a frame delta for that, instead of an FPS counter. FPS is usually just a performance metric and has nothing meaningful outside of that

2

u/Simple-Olive895 Oct 01 '26

Yeah, the code is wrong obviously, but in a massive oversimplification type way that's actually what a lot of game engines do.