From b0d1be69d679444e7d0957e1b619720705e03107 Mon Sep 17 00:00:00 2001 From: Poly Date: Wed, 3 Feb 2021 23:50:03 +0100 Subject: [PATCH] Change `PowerPreference` from `default()` to `LowPower` There is no reason to hide the fact that this is always in `LowPower` mode --- wgpu/src/window/compositor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs index 492cb955..361b9ecf 100644 --- a/wgpu/src/window/compositor.rs +++ b/wgpu/src/window/compositor.rs @@ -27,7 +27,7 @@ impl Compositor { let adapter = instance .request_adapter(&wgpu::RequestAdapterOptions { power_preference: if settings.antialiasing.is_none() { - wgpu::PowerPreference::default() + wgpu::PowerPreference::LowPower } else { wgpu::PowerPreference::HighPerformance },