Skip to main content

delay_frames

Function delay_frames 

Source
pub fn delay_frames(frames: u32, cb: impl FnOnce() + 'static) -> TimerHandle
Expand description

Run cb once after frames redraws have been polled. Counts polls, not vsync frames: no timestamp, refresh-rate dependent. While frame entries are pending poll keeps requesting frames. A 0 count fires on the next poll.