pub struct TickStats {
pub frames: u32,
pub ticks: u32,
pub dropped: u32,
pub max_frame_ticks: u16,
pub ticks_per_frame: [u32; 9],
}Expand description
Frame-consistency counters since construction or FixedClock::reset_stats.
Fields§
§frames: u32Frames closed with FixedClock::end_frame.
ticks: u32Ticks run.
dropped: u32Ticks the catch-up cap dropped (only CatchUp::Cap drops any).
max_frame_ticks: u16Most ticks any single frame ran.
ticks_per_frame: [u32; 9]ticks_per_frame[k]: frames that ran k ticks (the last bucket is
“that many or more”). A steady game sits in one or two buckets.
Trait Implementations§
impl Copy for TickStats
impl Eq for TickStats
impl StructuralPartialEq for TickStats
Auto Trait Implementations§
impl Freeze for TickStats
impl RefUnwindSafe for TickStats
impl Send for TickStats
impl Sync for TickStats
impl Unpin for TickStats
impl UnsafeUnpin for TickStats
impl UnwindSafe for TickStats
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)