pub struct RenderTimings {
pub acquire: f32,
pub draw: f32,
pub present: f32,
pub gpu: Option<f32>,
}Expand description
Where a frame’s rendering spent its time, in milliseconds. See
Renderer::last_timings.
Fields§
§acquire: f32Waiting for a surface image: time the display, not the drawing, decides.
draw: f32Tessellating, encoding and submitting the scene.
present: f32Handing the image to the display.
gpu: Option<f32>What the GPU took over the latest frame it has finished, by its own clock, a few
frames behind: None where the device has no clock (milestone 612).
Trait Implementations§
Source§impl Clone for RenderTimings
impl Clone for RenderTimings
impl Copy for RenderTimings
Source§impl Debug for RenderTimings
impl Debug for RenderTimings
Source§impl Default for RenderTimings
impl Default for RenderTimings
Source§impl PartialEq for RenderTimings
impl PartialEq for RenderTimings
impl StructuralPartialEq for RenderTimings
Auto Trait Implementations§
impl Freeze for RenderTimings
impl RefUnwindSafe for RenderTimings
impl Send for RenderTimings
impl Sync for RenderTimings
impl Unpin for RenderTimings
impl UnsafeUnpin for RenderTimings
impl UnwindSafe for RenderTimings
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