Skip to main content

GAMEPLAY_HZ

Constant GAMEPLAY_HZ 

Source
pub const GAMEPLAY_HZ: f64 = 60.0;
Expand description

The gameplay world’s pacing rate, in hertz, until the window reports the refresh rate of the display it is on.

The rate is a ceiling on how often the world wakes, not a simulation rate: a tick’s duration is the one it measured, so a display that redraws slower or faster changes how long the thread sleeps, never how the scene behaves.