pub struct RenderStats {Show 17 fields
pub quads: usize,
pub glyphs: usize,
pub draw_calls: usize,
pub atlas_glyphs: usize,
pub images: usize,
pub cached_images: usize,
pub paths: usize,
pub path_edges: usize,
pub breaks_kind: usize,
pub breaks_image: usize,
pub breaks_clip: usize,
pub uploaded_bytes: usize,
pub glyphs_rasterized: u64,
pub atlas_resets: u64,
pub atlas_used: u32,
pub atlas_size: u32,
pub gpu_time: Option<Duration>,
}Expand description
Counters for profiling and tests.
Fields§
§quads: usizeQuad instances drawn, shadows included.
glyphs: usizeGlyphs drawn.
draw_calls: usizeDraw calls issued for the frame.
atlas_glyphs: usizeGlyphs resident in the atlas.
images: usizeImage quads drawn.
cached_images: usizeImage textures resident on the GPU.
paths: usizeShapes made of curves drawn.
path_edges: usizeStraight pieces those curves were cut into.
breaks_kind: usizeDraw calls split because the kind of primitive changed, as text after a quad.
breaks_image: usizeDraw calls split because the image changed.
breaks_clip: usizeDraw calls split because the clip changed.
uploaded_bytes: usizeBytes of instances sent to the GPU this frame.
glyphs_rasterized: u64Glyphs rasterized since the renderer was created.
atlas_resets: u64Times the glyph atlas lost everything: it grew or it was full.
atlas_used: u32How full the glyph atlas is, in thousandths of its height.
atlas_size: u32Side of the glyph atlas in pixels.
gpu_time: Option<Duration>How long the GPU took on a recent frame, when timing is on and it can tell. It arrives some frames late, so it is not this frame’s.
Implementations§
Source§impl RenderStats
impl RenderStats
Sourcepub fn work(&self) -> RenderWork
pub fn work(&self) -> RenderWork
The part of these stats the diagnostics keep.
Trait Implementations§
Source§impl Clone for RenderStats
impl Clone for RenderStats
Source§fn clone(&self) -> RenderStats
fn clone(&self) -> RenderStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RenderStats
Source§impl Debug for RenderStats
impl Debug for RenderStats
Source§impl Default for RenderStats
impl Default for RenderStats
Source§fn default() -> RenderStats
fn default() -> RenderStats
impl Eq for RenderStats
Source§impl PartialEq for RenderStats
impl PartialEq for RenderStats
impl StructuralPartialEq for RenderStats
Auto Trait Implementations§
impl Freeze for RenderStats
impl RefUnwindSafe for RenderStats
impl Send for RenderStats
impl Sync for RenderStats
impl Unpin for RenderStats
impl UnsafeUnpin for RenderStats
impl UnwindSafe for RenderStats
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.