Skip to main content

Module clock

Module clock 

Source

Structsยง

Clock
A type for maintaining consistent tick/frame pacing.
ClockStats

Constantsยง

MAX_GAME_DT ๐Ÿ”’
The maximum dt that the game should ever run at.
NUDGE_RATE ๐Ÿ”’
The proportion of the difference between real and game time that gets applied each tick to keep the two aligned.
SMOOTH_WEIGHT ๐Ÿ”’
The weighting used to calculate averages. Must be > 0.0. 1.0 = no averaging.