Frame-rate-independent simulation with substeps
Cut the frame time to 0.05s, take up to 0.25s and update them several times into 0.05s of a second, so that the game does not slow down even on slow phones.
- Category
- Optimization techniques
Technical terms · Fixed timestep with substeps · Delta time clamping · Spiral of death · Game clock vs wall clock