Go easy on the GPU
This commit is contained in:
parent
ab86c7abd2
commit
4187b6683e
|
|
@ -382,7 +382,8 @@ impl WgpuState {
|
|||
});
|
||||
|
||||
let adapter = pollster::block_on(instance.request_adapter(&wgpu::RequestAdapterOptions {
|
||||
power_preference: wgpu::PowerPreference::HighPerformance,
|
||||
power_preference:
|
||||
wgpu::PowerPreference::from_env().unwrap_or(wgpu::PowerPreference::LowPower),
|
||||
compatible_surface: None,
|
||||
force_fallback_adapter: false,
|
||||
}))
|
||||
|
|
@ -439,7 +440,7 @@ impl Viewport {
|
|||
egui_extras::install_image_loaders(&ctx);
|
||||
|
||||
let wgpu_config = egui_wgpu::WgpuConfiguration {
|
||||
present_mode: wgpu::PresentMode::AutoNoVsync,
|
||||
present_mode: wgpu::PresentMode::AutoVsync,
|
||||
wgpu_setup: egui_wgpu::WgpuSetup::Existing(egui_wgpu::WgpuSetupExisting {
|
||||
instance: wgpu.instance.clone(),
|
||||
adapter: wgpu.adapter.clone(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue