pub struct FrameStats {
pub fps: f32,
pub dt: f32,
pub glyph_count: usize,
pub particle_count: usize,
pub draw_calls: u32,
pub frame_number: u64,
}Expand description
Per-frame rendering statistics.
Fields§
§fps: f32Frames per second (rolling average over 60 frames).
dt: f32Time of last frame in seconds.
glyph_count: usizeNumber of glyphs drawn this frame.
particle_count: usizeNumber of particles drawn this frame.
draw_calls: u32Number of draw calls this frame.
frame_number: u64Total frame number since engine start.
Trait Implementations§
Source§impl Clone for FrameStats
impl Clone for FrameStats
Source§fn clone(&self) -> FrameStats
fn clone(&self) -> FrameStats
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 moreSource§impl Debug for FrameStats
impl Debug for FrameStats
Source§impl Default for FrameStats
impl Default for FrameStats
Source§fn default() -> FrameStats
fn default() -> FrameStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameStats
impl RefUnwindSafe for FrameStats
impl Send for FrameStats
impl Sync for FrameStats
impl Unpin for FrameStats
impl UnsafeUnpin for FrameStats
impl UnwindSafe for FrameStats
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