pub struct BudgetTelemetry {
pub level: DegradationLevel,
pub pid_output: f64,
pub pid_p: f64,
pub pid_i: f64,
pub pid_d: f64,
pub e_value: f64,
pub frames_observed: u32,
pub frames_since_change: u32,
pub last_decision: BudgetDecision,
pub in_warmup: bool,
}Expand description
Snapshot of budget controller telemetry for diagnostics and debug overlay.
All fields are Copy — no allocations. Intended to be cheaply captured
once per frame and forwarded to a tracing subscriber or debug overlay widget.
Fields§
§level: DegradationLevelCurrent degradation level.
pid_output: f64Last PID control signal (positive = over budget).
pid_p: f64Last PID proportional term.
pid_i: f64Last PID integral term.
pid_d: f64Last PID derivative term.
e_value: f64Current e-process value E_t.
frames_observed: u32Frames observed by the e-process.
frames_since_change: u32Frames since last level change.
last_decision: BudgetDecisionLast decision made by the controller.
in_warmup: boolWhether the controller is in warmup (e-process not yet active).
Trait Implementations§
Source§impl Clone for BudgetTelemetry
impl Clone for BudgetTelemetry
Source§fn clone(&self) -> BudgetTelemetry
fn clone(&self) -> BudgetTelemetry
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 BudgetTelemetry
impl Debug for BudgetTelemetry
Source§impl PartialEq for BudgetTelemetry
impl PartialEq for BudgetTelemetry
impl Copy for BudgetTelemetry
impl StructuralPartialEq for BudgetTelemetry
Auto Trait Implementations§
impl Freeze for BudgetTelemetry
impl RefUnwindSafe for BudgetTelemetry
impl Send for BudgetTelemetry
impl Sync for BudgetTelemetry
impl Unpin for BudgetTelemetry
impl UnsafeUnpin for BudgetTelemetry
impl UnwindSafe for BudgetTelemetry
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