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.

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