$ ./guess_the_languageGame Dev
Game Dev · hard · #223

In a fixed-timestep loop, why clamp the accumulated frame time?

  1. To keep the render rate at 60 FPS
  2. To stop a spiral of ever-slower frames
  3. To make deltaTime always positive
  4. To keep physics in sync with the audio clock
If a frame needs more physics steps than it has time for, the next one falls further behind; capping the steps breaks that loop.
Play Game Dev ▸