Skip to main content

time_units_to_ticks

Function time_units_to_ticks 

Source
pub fn time_units_to_ticks(t: u32) -> u64
Expand description

Busy/wait times are stored in twentieths of a second; the game clock runs at 120 Hz.

Measured in DOSBox at the E1M1 start: a wait of 6 then a busy time of 40 make the coffin floor start rising ~0.2-0.3 s after the first input and finish ~2.1 s later, and a wait of 20 plays the player’s voice line at ~1.0 s (tenths would give 0.6, 4.0 and 2.0 s).