pub struct AdaptiveFrameGovernor { /* private fields */ }Expand description
Closed-loop damped PI + asymmetric hysteresis frame-budget governor stabilizing FPS across 60/120/144/240/360/480Hz targets.
Implementations§
Source§impl AdaptiveFrameGovernor
Damped PI + asymmetric hysteresis frame-time stabilization for AdaptiveFrameGovernor.
impl AdaptiveFrameGovernor
Damped PI + asymmetric hysteresis frame-time stabilization for AdaptiveFrameGovernor.
Sourcepub fn for_target_hz(target_hz: f32) -> Self
pub fn for_target_hz(target_hz: f32) -> Self
Sourcepub fn with_scale_bounds(self, min_scale: f32, max_scale: f32) -> Self
pub fn with_scale_bounds(self, min_scale: f32, max_scale: f32) -> Self
Sourcepub fn record_frame(
&mut self,
frame_ms: f32,
config: &mut RenderQualityConfig,
) -> FramePacingTelemetry3D
pub fn record_frame( &mut self, frame_ms: f32, config: &mut RenderQualityConfig, ) -> FramePacingTelemetry3D
Observes the completed frame_ms duration, updates smoothed telemetry, and smoothly adjusts config to lock target FPS without oscillation.
§Arguments
f32- Measured frame duration in milliseconds.&mut RenderQualityConfig- Active quality configuration adjusted in-place when dynamic scaling is enabled.
§Returns
FramePacingTelemetry3D- Live pacing, utilization, and stability diagnostics.
Source§impl AdaptiveFrameGovernor
impl AdaptiveFrameGovernor
pub fn get_target_hz(&self) -> f32
pub fn get_mut_target_hz(&mut self) -> &mut f32
pub fn set_target_hz(&mut self, val: f32) -> &mut Self
pub fn get_min_scale(&self) -> f32
pub fn get_mut_min_scale(&mut self) -> &mut f32
pub fn set_min_scale(&mut self, val: f32) -> &mut Self
pub fn get_max_scale(&self) -> f32
pub fn get_mut_max_scale(&mut self) -> &mut f32
pub fn set_max_scale(&mut self, val: f32) -> &mut Self
pub fn get_current_scale(&self) -> f32
pub fn get_mut_current_scale(&mut self) -> &mut f32
pub fn set_current_scale(&mut self, val: f32) -> &mut Self
pub fn get_rt_stride_bias(&self) -> usize
pub fn get_mut_rt_stride_bias(&mut self) -> &mut usize
pub fn set_rt_stride_bias(&mut self, val: usize) -> &mut Self
pub fn get_lod_bias(&self) -> f32
pub fn get_mut_lod_bias(&mut self) -> &mut f32
pub fn set_lod_bias(&mut self, val: f32) -> &mut Self
pub fn get_ema_frame_ms(&self) -> f32
pub fn get_mut_ema_frame_ms(&mut self) -> &mut f32
pub fn set_ema_frame_ms(&mut self, val: f32) -> &mut Self
pub fn get_ema_jitter_ms(&self) -> f32
pub fn get_mut_ema_jitter_ms(&mut self) -> &mut f32
pub fn set_ema_jitter_ms(&mut self, val: f32) -> &mut Self
pub fn get_p99_est_ms(&self) -> f32
pub fn get_mut_p99_est_ms(&mut self) -> &mut f32
pub fn set_p99_est_ms(&mut self, val: f32) -> &mut Self
pub fn get_last_frame_ms(&self) -> f32
pub fn get_mut_last_frame_ms(&mut self) -> &mut f32
pub fn set_last_frame_ms(&mut self, val: f32) -> &mut Self
pub fn get_under_budget_streak(&self) -> u32
pub fn get_mut_under_budget_streak(&mut self) -> &mut u32
pub fn set_under_budget_streak(&mut self, val: u32) -> &mut Self
pub fn get_over_budget_streak(&self) -> u32
pub fn get_mut_over_budget_streak(&mut self) -> &mut u32
pub fn set_over_budget_streak(&mut self, val: u32) -> &mut Self
pub fn get_hysteresis_frames(&self) -> u32
pub fn get_mut_hysteresis_frames(&mut self) -> &mut u32
pub fn set_hysteresis_frames(&mut self, val: u32) -> &mut Self
pub fn get_total_frames(&self) -> u64
pub fn get_mut_total_frames(&mut self) -> &mut u64
pub fn set_total_frames(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for AdaptiveFrameGovernor
impl Clone for AdaptiveFrameGovernor
impl Copy for AdaptiveFrameGovernor
Source§impl Debug for AdaptiveFrameGovernor
impl Debug for AdaptiveFrameGovernor
Source§impl Default for AdaptiveFrameGovernor
Default 60Hz AdaptiveFrameGovernor.
impl Default for AdaptiveFrameGovernor
Default 60Hz AdaptiveFrameGovernor.
Source§impl PartialEq for AdaptiveFrameGovernor
impl PartialEq for AdaptiveFrameGovernor
impl StructuralPartialEq for AdaptiveFrameGovernor
Auto Trait Implementations§
impl Forget for AdaptiveFrameGovernor
impl Freeze for AdaptiveFrameGovernor
impl Move for AdaptiveFrameGovernor
impl RefUnwindSafe for AdaptiveFrameGovernor
impl Send for AdaptiveFrameGovernor
impl Sync for AdaptiveFrameGovernor
impl Unpin for AdaptiveFrameGovernor
impl UnsafeUnpin for AdaptiveFrameGovernor
impl UnwindSafe for AdaptiveFrameGovernor
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