pub struct PerformanceSettings {
pub enable_culling: bool,
pub enable_batching: bool,
pub enable_lod: bool,
pub max_nodes_per_frame: usize,
pub max_edges_per_frame: usize,
pub target_fps: f64,
pub cull_margin: f64,
}Expand description
Performance optimization settings
Fields§
§enable_culling: bool§enable_batching: bool§enable_lod: bool§max_nodes_per_frame: usize§max_edges_per_frame: usize§target_fps: f64§cull_margin: f64Implementations§
Source§impl PerformanceSettings
impl PerformanceSettings
pub fn high_performance() -> Self
pub fn balanced() -> Self
pub fn high_quality() -> Self
Trait Implementations§
Source§impl Clone for PerformanceSettings
impl Clone for PerformanceSettings
Source§fn clone(&self) -> PerformanceSettings
fn clone(&self) -> PerformanceSettings
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 PerformanceSettings
impl Debug for PerformanceSettings
Auto Trait Implementations§
impl Freeze for PerformanceSettings
impl RefUnwindSafe for PerformanceSettings
impl Send for PerformanceSettings
impl Sync for PerformanceSettings
impl Unpin for PerformanceSettings
impl UnwindSafe for PerformanceSettings
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