pub struct TickStats {
pub ticks: u32,
pub time: Duration,
pub longest: Duration,
}Expand description
How many ticks the frame ran, and how long they took: a resource.
The loop writes it after the frame’s ticks and before its frame stages, so frame systems read their own frame’s. A tick counts from its latch to the end of its stages, with its commands applied. A frame with no tick holds zeros.
Fields§
§ticks: u32How many ticks ran.
time: DurationHow long they took, together.
longest: DurationHow long the longest of them took.
Trait Implementations§
impl Copy for TickStats
impl Eq for TickStats
impl StructuralPartialEq for TickStats
Auto Trait Implementations§
impl Forget for TickStats
impl Freeze for TickStats
impl Move 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§
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