After many years, Firefox 80 brought VA-API support even for X11 desktops, not just for Wayland desktops. But to use it, there are certain keys needs to be set in Firefox. In my view, these keys should be set by default.
First, GPU based rendering needs to be turned on. There are two ways to achieve this:
-Allow OpenGL based rendering (this is an older thing), by setting this key to TRUE:
(some other distros have already been used this setting in the past without any problems)
-Allow the newer WebRender, by setting this key to TRUE:
(Enabling webrenderer will overrides the OpenGL renderer setting.)
*you can check the effect of these keys buy checking about:support page, where there is a “Graphics” sections, the first value is the “compositing”. If that key sad “basic”, than you do not use GPU at all.
With working GPU rendering, VA-API can be enabled by setting these keys to TRUE:
The effect of these setting are huge. Sadly, I can not even post a link to an image to show this…
On the other hand, Youtube uses VP9 codec, that requires a modern GPU for VA-API. You can check the capability of your GPU by running the
vainfo command (from
To allow YouTube VP9 acceleration,
media.ffvpx.enabled should be set to FALSE.
**Also, enabling GPU based rendering by default leads to overall better Firefox experience for everyone. So this is a win-win situation.