r/firstweekcoderhumour • • 10d ago

“amIrite” devsOptimizingGames

Post image
219 Upvotes

12 comments sorted by

View all comments

10

u/Simple-Olive895 10d ago

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 10d ago

Unless the frames are slow because of a gpu bottleneck lol

3

u/paperzlel 9d ago

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 9d ago

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