pub struct LoadGovernorConfig {
pub enabled: bool,
pub budget_controller: BudgetControllerConfig,
}Expand description
Conservative runtime load-governor configuration.
The first runtime governor uses a single primary control lever: adaptive
render degradation driven by measured frame times. The controller combines
hysteresis, cooldown, and e-process evidence gates inside RenderBudget,
and the legacy threshold path remains available as the safe fallback by
disabling this config.
Fields§
§enabled: boolWhether the adaptive governor is active.
budget_controller: BudgetControllerConfigController used to decide degrade/upgrade transitions from frame timing.
Implementations§
Source§impl LoadGovernorConfig
impl LoadGovernorConfig
Sourcepub fn disabled() -> Self
pub fn disabled() -> Self
Disable the governor and use the legacy render-budget threshold path.
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Toggle governor activation.
Sourcepub fn with_budget_controller(self, config: BudgetControllerConfig) -> Self
pub fn with_budget_controller(self, config: BudgetControllerConfig) -> Self
Replace the adaptive budget controller configuration.
Trait Implementations§
Source§impl Clone for LoadGovernorConfig
impl Clone for LoadGovernorConfig
Source§fn clone(&self) -> LoadGovernorConfig
fn clone(&self) -> LoadGovernorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadGovernorConfig
impl Debug for LoadGovernorConfig
Source§impl Default for LoadGovernorConfig
impl Default for LoadGovernorConfig
Source§impl PartialEq for LoadGovernorConfig
impl PartialEq for LoadGovernorConfig
impl StructuralPartialEq for LoadGovernorConfig
Auto Trait Implementations§
impl Freeze for LoadGovernorConfig
impl RefUnwindSafe for LoadGovernorConfig
impl Send for LoadGovernorConfig
impl Sync for LoadGovernorConfig
impl Unpin for LoadGovernorConfig
impl UnsafeUnpin for LoadGovernorConfig
impl UnwindSafe for LoadGovernorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more