Prefer discrete GPU for PowerPreference::Default

This commit is contained in:
Aaron Loucks
2020-01-11 03:07:45 -05:00
parent 3a11fab693
commit 4b46e885fd

View File

@@ -271,7 +271,7 @@ impl<F: IdentityFilter<AdapterId>> Global<F> {
}
let preferred_gpu = match desc.power_preference {
PowerPreference::Default => integrated.or(discrete).or(other).or(virt),
PowerPreference::Default => discrete.or(integrated).or(other).or(virt),
PowerPreference::LowPower => integrated.or(other).or(discrete).or(virt),
PowerPreference::HighPerformance => discrete.or(other).or(integrated).or(virt),
};