pub struct StreamingConfig {
pub load_radius: u32,
pub unload_radius: u32,
pub loads_per_frame: usize,
pub cache_capacity: usize,
pub gen_config: ChunkGenConfig,
}Expand description
Configuration for the streaming manager.
Fields§
§load_radius: u32Radius in chunks around the viewer to keep loaded.
unload_radius: u32Radius at which chunks are unloaded (should be > load_radius).
loads_per_frame: usizeMaximum chunks to generate per frame.
cache_capacity: usizeMaximum chunks in the mesh cache.
gen_config: ChunkGenConfigChunk generation configuration.
Trait Implementations§
Source§impl Clone for StreamingConfig
impl Clone for StreamingConfig
Source§fn clone(&self) -> StreamingConfig
fn clone(&self) -> StreamingConfig
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 StreamingConfig
impl Debug for StreamingConfig
Auto Trait Implementations§
impl Freeze for StreamingConfig
impl RefUnwindSafe for StreamingConfig
impl Send for StreamingConfig
impl Sync for StreamingConfig
impl Unpin for StreamingConfig
impl UnsafeUnpin for StreamingConfig
impl UnwindSafe for StreamingConfig
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