Skip to main content

wait_frames

Function wait_frames 

Source
pub fn wait_frames(seconds: f32) -> u32
Expand description

How many frames a wait of seconds takes: the seconds at 60 a second, rounded up, a product within a thousandth of a whole number counting as that number (0.5 s is 30 frames, 1/60 s is 1, 0.51 s is 31). A wait above 0 is at least one frame; a wait of 0, or one that isn’t a number of seconds 0 or more, is none.