pub struct FrameTimeReport {
pub count: usize,
pub min: f64,
pub max: f64,
pub mean: f64,
pub std_dev: f64,
pub p50: f64,
pub p90: f64,
pub p95: f64,
pub p99: f64,
}Expand description
Summary report of frame time statistics.
Fields§
§count: usizeNumber of samples.
min: f64Minimum frame time (ms).
max: f64Maximum frame time (ms).
mean: f64Mean frame time (ms).
std_dev: f64Standard deviation (ms).
p50: f6450th percentile / median (ms).
p90: f6490th percentile (ms).
p95: f6495th percentile (ms).
p99: f6499th percentile (ms).
Implementations§
Source§impl FrameTimeReport
impl FrameTimeReport
Sourcepub fn meets_60fps(&self) -> bool
pub fn meets_60fps(&self) -> bool
Check if performance meets 60 FPS target (16.67ms budget).
Sourcepub fn meets_120fps(&self) -> bool
pub fn meets_120fps(&self) -> bool
Check if performance meets 120 FPS target (8.33ms budget).
Sourcepub fn meets_30fps(&self) -> bool
pub fn meets_30fps(&self) -> bool
Check if performance meets 30 FPS target (33.33ms budget).
Trait Implementations§
Source§impl Clone for FrameTimeReport
impl Clone for FrameTimeReport
Source§fn clone(&self) -> FrameTimeReport
fn clone(&self) -> FrameTimeReport
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 FrameTimeReport
impl RefUnwindSafe for FrameTimeReport
impl Send for FrameTimeReport
impl Sync for FrameTimeReport
impl Unpin for FrameTimeReport
impl UnwindSafe for FrameTimeReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more