Skip to main content

budget_secs

Function budget_secs 

Source
pub fn budget_secs(hz: f32) -> f32
Expand description

The frame budget for a display running at hz, in seconds. Falls back to DEFAULT_DISPLAY_HZ for a value that is not a usable rate, so a frontend that cannot read its monitor still gets a governed session rather than an ungoverned one.