Merge pull request #2813 from laycookie/PowerPrefferencePatch

Power prefference patch
This commit is contained in:
Héctor 2025-11-21 00:51:24 +01:00 committed by GitHub
commit 07d5271299
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,13 +82,8 @@ impl Compositor {
.and_then(|window| instance.create_surface(window).ok());
let adapter_options = wgpu::RequestAdapterOptions {
power_preference: wgpu::PowerPreference::from_env().unwrap_or(
if settings.antialiasing.is_none() {
wgpu::PowerPreference::LowPower
} else {
wgpu::PowerPreference::HighPerformance
},
),
power_preference: wgpu::PowerPreference::from_env()
.unwrap_or(wgpu::PowerPreference::HighPerformance),
compatible_surface: compatible_surface.as_ref(),
force_fallback_adapter: false,
};