Watch a 1080p clip in Firefox and the fan spins up, the video stutters, and scrolling the comments feels like dragging through mud. On some setups a few hidden settings fix most of that. None of it costs money or installs anything.
Why is YouTube rougher in Firefox? Chrome, Edge and Brave all run on Chromium, the engine YouTube is tested against hardest. Firefox has its own, so the same page can take a different route through your graphics chip and its drivers. The settings below switch on the faster routes. They won't help every machine, since Firefox already turns some on for you, but where they're still off the difference is real.
One warning first. Most of these live on about:config, Firefox's hidden settings page, which you reach by typing that into the address bar. A couple can glitch on some hardware. If video breaks after a change, flip the setting back. That's the whole undo button.
Turn on the layer compositor
Drawing a web page is work, and Firefox normally does all of it before handing over a finished picture. The layer compositor lets Windows and your graphics chip take part of that job instead, so scrolling gets smoother and a laptop uses less battery. Windows builds already turn it on by default, so this mainly matters where it's still off.
Open about:config, search for gfx.webrender.layer-compositor, and set it to true. Restart Firefox. The exact name matters. An older setting called gfx.webrender.compositor.force-enabled does something different, and plenty of guides still point at it. If the page draws wrong afterwards, set it back to false.
Cut CPU use on AMD chips
Got an AMD graphics chip on Windows, especially the kind built into a laptop? When the chip finishes a frame of video, that frame sometimes gets copied an extra time before it reaches the screen. One setting tells Firefox to skip the copy, which cuts CPU use on machines where Firefox would otherwise play it safe. Search for media.wmf.zero-copy-nv12-textures-force-enabled and set it to true.
The wmf stands for Windows Media Foundation, so it does nothing on Linux or macOS, and it targets AMD rather than Intel or Nvidia. If playback looks worse afterward, set it back to false.
Drop AV1 on older machines
YouTube often sends video in AV1, a newer format that squeezes files smaller. That's fine if your graphics chip can handle it by itself. The first mainstream cards that could handle it shipped around 2020, including Nvidia's RTX 30 series, AMD's RX 6000 line and Intel's Tiger Lake laptop chips. Anything older makes the main processor do it, which drives CPU use up and causes stutter at 1080p or 1440p.
Turning AV1 off pushes YouTube to send VP9 instead, which most older chips handle themselves. Find media.av1.enabled and set it to false. Open about:support and read the media section to see what your machine does now. If your chip handles AV1 by itself, leave this alone, because AV1 is faster there.
Make sure hardware decoding is on
Decoding video is the heaviest part of playing it, and your graphics chip is built for the job. Handing it over keeps the fan quiet and the battery alive during 4K playback. Current builds already do this, so this is a check rather than a change. Search for media.hardware-video-decoding.enabled and confirm it reads true.
One note for Linux folks. That setting now covers VA-API, the Linux way of handing video to the graphics chip. Mozilla switched Intel graphics on by default in Firefox 115 back in July 2023, though your distribution can still ship it off. The old media.ffmpeg.vaapi.enabled switch is gone, so don't hunt for it.
Fedora Project Firefox acceleration
Let extensions clean up the page
YouTube's page is heavy on its own, and a couple of add-ons trim the fat. The free uBlock Origin blocks ads and trackers, so fewer scripts load and the page does less work. Enhancer for YouTube adds playback controls and kills autoplay. Neither can speed up the video itself, so pair them with the settings above.
What to expect
Where these settings were off, expect smoother playback, a quieter fan, lower CPU use and better battery. None of it's a magic fix, and some gap can remain whatever you do. Firefox updates also shift defaults and retire old settings, so one that matters today may do nothing on a later build.
If video is still rough after all this, check your graphics drivers next. Old drivers on Windows, or an old Mesa version on Linux, are a common cause of whatever's left.




