#[repr(C)]pub struct FpsStats {
pub current_fps: f32,
pub min_fps: f32,
pub max_fps: f32,
pub avg_fps: f32,
pub frame_time_ms: f32,
}Expand description
Frame timing statistics computed from the rolling window.
All FPS values are in frames-per-second; frame_time_ms is the most
recent frame time in milliseconds.
Fields§
§current_fps: f32Current (most recent) FPS.
min_fps: f32Minimum FPS observed in the rolling window.
max_fps: f32Maximum FPS observed in the rolling window.
avg_fps: f32Average FPS across the rolling window.
frame_time_ms: f32Most recent frame time in milliseconds.
Trait Implementations§
impl Copy for FpsStats
Auto Trait Implementations§
impl Freeze for FpsStats
impl RefUnwindSafe for FpsStats
impl Send for FpsStats
impl Sync for FpsStats
impl Unpin for FpsStats
impl UnsafeUnpin for FpsStats
impl UnwindSafe for FpsStats
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().