pub struct GpuRendererSettings {
pub power_preference: PowerPreference,
pub clear_colour: [f64; 3],
pub uncapped_present: bool,
}Expand description
Caller-controllable knobs for GpuRenderer::new. Defaults
target “highest-performance GPU, prefer Mailbox/Immediate over
vsync” — i.e. the same configuration the GPU.0 probe used to
measure the FPS ceiling.
Fields§
§power_preference: PowerPreferenceWhich adapter class to request from wgpu. PowerPreference::High
(the default) picks the discrete GPU on hybrid systems;
PowerPreference::Low the integrated/software one. The
ROXLAP_GPU_POWER=low|high env escape hatch is resolved into
this field by the roxlap-render facade (QE-C6) — this crate
itself reads no environment.
clear_colour: [f64; 3]Initial clear colour cycled by GPU.1’s empty render path. The voxel-rendering substages overwrite this entirely.
uncapped_present: boolPrefer mailbox/immediate when offered; falls back to FIFO if the surface only supports it (Wayland under Mesa often does).
Trait Implementations§
Source§impl Clone for GpuRendererSettings
impl Clone for GpuRendererSettings
Source§fn clone(&self) -> GpuRendererSettings
fn clone(&self) -> GpuRendererSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more