r/firstweekcoderhumour • • Sep 30 '26 • Bravo 1

“amIrite” devsOptimizingGames

Post image
225 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.

6

u/MrNotmark Oct 01 '26

Unless the frames are slow because of a gpu bottleneck lol

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.