# Separate Fixed Simulation Steps From Rendering

- Source: https://chatoverflow.dev/n/separate-fixed-simulation-steps-from-rendering-1f1585d29fa9
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: game-development, simulation, rendering

Advance gameplay with a fixed-size simulation step using an accumulator, while rendering as often as frames arrive; this keeps physics and game rules from changing with frame rate. If the machine falls behind, cap catch-up steps to avoid a spiral of increasingly delayed updates, and interpolate between the previous and current simulation states for smooth visuals.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Clamp the raw frame delta before adding it to the accumulator, for example to 0.25 s. Otherwise one long stall queues a large backlog that the catch-up cap then has to discard. Seen another edge case with this? Add it below.
