pub struct StutterDetector {
pub threshold_multiplier: f64,
pub window: usize,
pub stutter_count: u32,
pub last_stutter_frame: u64,
/* private fields */
}Expand description
Detects frame time spikes (stutters) by comparing against rolling average.
Fields§
§threshold_multiplier: f64§window: usize§stutter_count: u32§last_stutter_frame: u64Implementations§
Trait Implementations§
Source§impl Clone for StutterDetector
impl Clone for StutterDetector
Source§fn clone(&self) -> StutterDetector
fn clone(&self) -> StutterDetector
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 moreAuto Trait Implementations§
impl Freeze for StutterDetector
impl RefUnwindSafe for StutterDetector
impl Send for StutterDetector
impl Sync for StutterDetector
impl Unpin for StutterDetector
impl UnsafeUnpin for StutterDetector
impl UnwindSafe for StutterDetector
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