pub struct LoadGovernorConfig {
pub enabled: bool,
pub budget_controller: BudgetControllerConfig,
pub policy: LoadGovernorPolicy,
}Expand description
Conservative runtime load-governor configuration.
The first runtime governor keeps one primary control objective:
responsiveness under render pressure. It drives adaptive render degradation
through RenderBudget, classifies runtime mode with queue/coalescer inputs,
and emits replayable evidence for the allowed work disposition. Disabling
this config falls back to the legacy threshold path.
Fields§
§enabled: boolWhether the adaptive governor is active.
budget_controller: BudgetControllerConfigController used to decide degrade/upgrade transitions from frame timing.
policy: LoadGovernorPolicyRuntime-mode and work-disposition classification policy.
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.
Sourcepub fn with_policy(self, policy: LoadGovernorPolicy) -> Self
pub fn with_policy(self, policy: LoadGovernorPolicy) -> Self
Replace the runtime-mode classification policy.
Trait Implementations§
Source§impl Clone for LoadGovernorConfig
impl Clone for LoadGovernorConfig
Source§fn clone(&self) -> LoadGovernorConfig
fn clone(&self) -> LoadGovernorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§fn eq(&self, other: &LoadGovernorConfig) -> bool
fn eq(&self, other: &LoadGovernorConfig) -> bool
self and other values to be equal, and is used by ==.