In a fixed-timestep loop, why clamp the accumulated frame time?
- To keep the render rate at 60 FPS
- To stop a spiral of ever-slower frames
- To make deltaTime always positive
- 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 ▸