pub struct EditorStats {
pub fps: f32,
pub frame_time_ms: f32,
pub draw_calls: u32,
pub entities: u32,
pub glyphs: u32,
pub particles: u32,
pub force_fields: u32,
pub memory_mb: f32,
pub gpu_memory_mb: f32,
pub triangles: u64,
pub frame_index: u64,
pub elapsed_secs: f32,
/* private fields */
}Expand description
Live performance / scene statistics displayed in the editor overlay.
Fields§
§fps: f32§frame_time_ms: f32§draw_calls: u32§entities: u32§glyphs: u32§particles: u32§force_fields: u32§memory_mb: f32§gpu_memory_mb: f32§triangles: u64§frame_index: u64Frame counter since engine start.
elapsed_secs: f32Accumulated time since engine start.
Implementations§
Trait Implementations§
Source§impl Clone for EditorStats
impl Clone for EditorStats
Source§fn clone(&self) -> EditorStats
fn clone(&self) -> EditorStats
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 EditorStats
impl Debug for EditorStats
Source§impl Default for EditorStats
impl Default for EditorStats
Source§fn default() -> EditorStats
fn default() -> EditorStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditorStats
impl RefUnwindSafe for EditorStats
impl Send for EditorStats
impl Sync for EditorStats
impl Unpin for EditorStats
impl UnsafeUnpin for EditorStats
impl UnwindSafe for EditorStats
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.