pub(crate) fn frame_period(fps: f64) -> DurationExpand 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.