Skip to content

Commit c1a7c34

Browse files
author
khcrysalis
committed
fix(?): set wgpu power preference to igpu
1 parent 464429d commit c1a7c34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/plumeimpactor/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ mod appearance;
99
mod defaults;
1010
mod refresh;
1111
mod screen;
12-
mod subscriptions;
1312
mod startup;
13+
mod subscriptions;
1414
mod tray;
1515

1616
pub const APP_NAME: &str = "Impactor";
@@ -34,6 +34,9 @@ fn main() -> iced::Result {
3434
None
3535
}
3636
};
37+
// set this to low so it tries to use the iGPU instead
38+
// https://github.com/iced-rs/iced/issues/3143
39+
unsafe { std::env::set_var("WGPU_POWER_PREF", "low") };
3740

3841
#[cfg(target_os = "linux")]
3942
{

0 commit comments

Comments
 (0)