Skip to main content

MAX_INTEGRATION_DT_MS

Constant MAX_INTEGRATION_DT_MS 

Source
pub const MAX_INTEGRATION_DT_MS: u32 = 100;
Expand description

Upper bound on per-tick integration step. After a suspend / hot reload / debugger pause, Tick.dt can balloon into seconds; without a cap the inertial fling launches the offset off the page in a single tick. 100 ms matches the wall-clock budget most browsers use for their requestAnimationFrame rate limiters after backgrounding.