pub struct HeuristicEngine;Expand description
Analyzes metrics and context to determine engine-wide strategy changes.
Implementations§
Source§impl HeuristicEngine
impl HeuristicEngine
Sourcepub fn analyze(&self, context: &Context, store: &MetricStore) -> AnalysisReport
pub fn analyze(&self, context: &Context, store: &MetricStore) -> AnalysisReport
Analyzes the current situational model.
Evaluates the full set of heuristics:
- Phase heuristics: Adjust target FPS for the current execution phase.
- Thermal analysis: Detect throttling / critical and reduce budgets.
- Battery analysis: Conserve power on low/critical battery.
- Frame time analysis: Detect sustained performance drops.
- Stutter analysis: Detect high frame time variance.
- Trend analysis: Preempt worsening performance via slope detection.
- CPU/GPU pressure: Detect resource saturation.
Auto Trait Implementations§
impl Freeze for HeuristicEngine
impl RefUnwindSafe for HeuristicEngine
impl Send for HeuristicEngine
impl Sync for HeuristicEngine
impl Unpin for HeuristicEngine
impl UnwindSafe for HeuristicEngine
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