Skip to main content

frame_period

Function frame_period 

Source
pub(crate) fn frame_period(fps: f64) -> Duration
Expand description

The frame period for a target rate. Settings are sanitized at the API boundary; a rate outside the sane range takes the default here so a non-finite one never reaches Duration::from_secs_f64.