Skip to content

Instantly share code, notes, and snippets.

@sar
Created March 14, 2021 00:44
Show Gist options
  • Save sar/8325562bceac2bdb671e682f5f416dfb to your computer and use it in GitHub Desktop.
Save sar/8325562bceac2bdb671e682f5f416dfb to your computer and use it in GitHub Desktop.
Enable Web GPU Video Decoding and DOM Acceleration on Firefox Linux

Firefox GPU Acceleration

Enable GPU accelerated content decoding and DOM compositor rendering on Linux. For more details refer to docs.

Properties can be set by navigating to about:config.

DOM

gfx.webrender.all=true
layers.mlgpu.enabled=true
layers.gpu-process.enabled=true
dom.webgpu.enabled=true

Media GPU Decode

media.gpu-process-decoder=true
media.ffmpeg.vaapi.enabled=true

Leave a comment down below if this worked for you and your config uname -a lspci -vvv | grep -E 'NVIDIA|Graphics.

@Korb
Copy link

Korb commented Jan 14, 2025

Mozilla Firefox 135.0b4 (64-bit)
Microsoft Windows 10.0.19045.5247
Nvidia GeForce RTX 3070 Ti
GeForce Game Ready Driver 566.36 (Dec 05, 2024)

After making the changes (and adding the missing flags) and restarting the browser, the demos on webgpu.github.io and willusher.io still don't show up. Mozilla Firefox still supports WebGPU only in nightly builds even after changing settings? Developer.mozilla.org reports that the technology is not supported at all in Firefox, but Bugzilla has dozens of tickets reporting that something is already working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment