pub struct FrameStats {
pub frame: u64,
pub visible: u64,
pub stamps: Option<[f64; 4]>,
}Expand description
what a finished frame measured (Scene::set_stats)
Fields§
§frame: u64counts the scene’s frames from 0
visible: u64records the visibility found in the target
stamps: Option<[f64; 4]>the GPU’s clock (ms) at the start, after the uploads, after the visibility, after the draw (None: no timestamps here)
Trait Implementations§
Source§impl Clone for FrameStats
impl Clone for FrameStats
impl Copy for FrameStats
Auto Trait Implementations§
impl Forget for FrameStats
impl Freeze for FrameStats
impl Move 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