pub struct StreamingStats {Show 30 fields
pub frame_number: u64,
pub chunks_loaded_this_frame: u32,
pub chunks_unloaded_this_frame: u32,
pub chunks_lod_switched_this_frame: u32,
pub total_chunks_loaded: u32,
pub total_chunks_unloaded: u32,
pub total_draw_calls_saved: u64,
pub memory_used_bytes: u64,
pub memory_budget_bytes: u64,
pub chunks_in_frustum: u32,
pub chunks_frustum_culled: u32,
pub chunks_distance_culled: u32,
pub active_chunks: u32,
pub queued_loads: u32,
pub active_loads: u32,
pub impostor_draw_calls: u32,
pub lod_low_draw_calls: u32,
pub lod_medium_draw_calls: u32,
pub lod_high_draw_calls: u32,
pub lod_ultra_draw_calls: u32,
pub terrain_stitch_ops: u32,
pub virtual_texture_uploads: u32,
pub hlod_merges: u32,
pub frame_load_time_us: u64,
pub frame_cull_time_us: u64,
pub frame_lod_time_us: u64,
pub peak_memory_bytes: u64,
pub avg_chunk_load_time_us: f64,
pub total_visible_objects: u32,
pub total_culled_objects: u32,
}Fields§
§frame_number: u64§chunks_loaded_this_frame: u32§chunks_unloaded_this_frame: u32§chunks_lod_switched_this_frame: u32§total_chunks_loaded: u32§total_chunks_unloaded: u32§total_draw_calls_saved: u64§memory_used_bytes: u64§memory_budget_bytes: u64§chunks_in_frustum: u32§chunks_frustum_culled: u32§chunks_distance_culled: u32§active_chunks: u32§queued_loads: u32§active_loads: u32§impostor_draw_calls: u32§lod_low_draw_calls: u32§lod_medium_draw_calls: u32§lod_high_draw_calls: u32§lod_ultra_draw_calls: u32§terrain_stitch_ops: u32§virtual_texture_uploads: u32§hlod_merges: u32§frame_load_time_us: u64§frame_cull_time_us: u64§frame_lod_time_us: u64§peak_memory_bytes: u64§avg_chunk_load_time_us: f64§total_visible_objects: u32§total_culled_objects: u32Implementations§
Source§impl StreamingStats
impl StreamingStats
pub fn new() -> Self
pub fn reset_frame_counters(&mut self)
pub fn memory_usage_ratio(&self) -> f32
pub fn draw_calls_saved_ratio(&self) -> f32
pub fn advance_frame(&mut self)
pub fn record_lod_draw_call(&mut self, lod: &LodLevel)
Trait Implementations§
Source§impl Clone for StreamingStats
impl Clone for StreamingStats
Source§impl Debug for StreamingStats
impl Debug for StreamingStats
Auto Trait Implementations§
impl Freeze for StreamingStats
impl RefUnwindSafe for StreamingStats
impl Send for StreamingStats
impl Sync for StreamingStats
impl Unpin for StreamingStats
impl UnsafeUnpin for StreamingStats
impl UnwindSafe for StreamingStats
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
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,
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.