Skip to main content

safety_ceiling

Function safety_ceiling 

Source
pub fn safety_ceiling(ctx: &Context) -> f32
Expand description

The hard ceiling on the budget multiplier for the current context.

The PID loop regulates the multiplier smoothly toward the frame-time target, but emergencies (Critical thermal/battery, near-budget memory pressure) demand an immediate cap that does not wait for the loop to converge. This is the feedforward / safety half of the controller: it can only ever lower the multiplier, never raise it.