Bug 1841840 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Quoting myself from internal WebGPU chat:

> I notice that WebGPU is picking the integrated GPU over the NVIDIA GPU reported in [comment 7 on bug 1840273](https://bugzilla.mozilla.org/show_bug.cgi?id=1840273#c7) (see the `about:support` PDF attachment); is this related to [`wgpu`#3903](https://github.com/gfx-rs/wgpu/pull/3903)?
>
> [Looks like](https://searchfox.org/mozilla-central/rev/217cc028cb388d786e564a765df90669358616ad/dom/webgpu/ipc/WebGPUParent.cpp#280-284) it eventually turns into _not_ setting the `WGPURequestAdapterOptions::power_preference` setting after a default constructor  (i.e., `… options = {}`). I'm assuming that because `<wgpu::RequestAdapterOptions as Default>::default` [currently returns `LowPower`](https://searchfox.org/mozilla-central/rev/217cc028cb388d786e564a765df90669358616ad/third_party/rust/wgpu-types/src/lib.rs#125-126), and the FFI definition of [`WGPUPowerPreference_LowPower = 0`](https://searchfox.org/mozilla-central/source/__GENERATED__/gfx/wgpu_bindings/wgpu_ffi_generated.h#670), we're requesting low-power interfaces by default.

This will be resolved in [`wgpu`#3903](https://github.com/gfx-rs/wgpu/pull/3903). We track the consumption of this fix in this bug.

Back to Bug 1841840 Comment 0