Home▸Game Development▸Game Loop Fixed Timestep: Accumulator, Spiral of Death and Render Interpolation

Game Loop Fixed Timestep: Accumulator, Spiral of Death and Render Interpolation

Drive a spring-mass oscillator from a game loop and see why engines use a fixed physics step. Feed it jittery frame times, change the step, the cost of one step and the frame cap, and watch the accumulator decide how many steps run each frame, interpolation smooth the leftover fraction, and the spiral of death start when a step costs more than its own duration. Compare with a variable step and unstable explicit Euler, with numerical checks built in.

Game Development3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Game Loop Fixed Timestep: Accumulator, Spiral of Death and Render Interpolation ↗ Open standalone

Drive a spring-mass oscillator from a game loop and see why engines use a fixed physics step. Feed it jittery frame times, change the step, the cost of one step and the frame cap, and watch the accumulator decide how many steps run each frame, interpolation smooth the leftover fraction, and the spiral of death start when a step costs more than its own duration. Compare with a variable step and unstable explicit Euler, with numerical checks built in.

⚙ Under the hood

Drive a spring-mass oscillator from a game loop and see why engines use a fixed physics step. Feed it jittery frame times, change the step, the cost of one step and the frame cap, and watch the accumulator decide how many steps run each frame, interpolation smooth the leftover fraction, and the spiral of death start when a step costs more than its own duration. Compare with a variable step and unstable explicit Euler, with numerical checks built in.

SimLab DemoGame LoopFixed TimestepInterpolationNumerical IntegrationGame Physics

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)