Hacker News new | ask | show | jobs
by Ristovski 1814 days ago
Rendering performance is one of the few things left that Chrome has up its sleeve as an edge over their competitors (mainly Firefox), at least on Linux.

Out of the box, Firefox has terrible rendering performance, not to mention hw-accelerated video decoding. Now, Chrome is not a whole lot better out of the box, since it still applies old "Driver bug workarounds" that have long been fixed in mesa/GPU drivers, but this is easy to circumvent with the `--disable-gpu-driver-bug-workarounds`.

I've been running Chromium with the said flag for over half a decade now, and I have yet to see one of the bugs manifest. Firefox on the other hand, has a similar entry in `about:config`, but one needs to tinker with even more flags to get Firefox to acceptable performance (Somehow, enabling xrender makes WebGL fast, but makes video decoding have weird jitter, etc).

The day Firefox gets comparable WebGL/video decode performance will most likely be the day I switch.

4 comments

> one needs to tinker with even more flags to get Firefox to acceptable performance

All you need is gfx.webrender.all, if you even failed the qualification (most modern setups shouldn't fail it).

Seriously, FF on Ubuntu causes 100% CPU usage when watching YouTube in 1080p. Meanwhile Chrome on Windows eats maybe 6-10%.

How is this not #1 priority to fix?

Not much FF can do directly AFAIK, since it has to do with the hardware decoding the drivers support.

I've used an addon for a while which fixed it by forcing YouTube to serve h264 rather than vp9 content, as hardware accelerated decoding of h264 worked but not vp9. But lately it hasn't worked well. Haven't investigated if it was due to newer content only being vp9 or if the addon stopped working.

I think it's a conflict with the sandbox, like it https://bugzilla.mozilla.org/show_bug.cgi?id=1698778.
I'm pretty sure most users don't have this experience. Can you post a link to a pastebin of your about:support or file a bug?
This is normal. Firefox is only now rolling out accelerated decoding on Linux.
Comparing across platforms is not a good idea. Different drivers, APIs and platform OS issues dramatically affect these results.
Personally I just have layers.acceleration.force-enabled: true and that's enough to get me fast 4K WebGL. WebRender and Wayland dmabuf seem to turn on automatically. Intel 915, Fedora 34, dual 4K monitors, distro Firefox 89.
Note that WebRender obsoletes Layers, so you shouldn't need to set that.
Yeah it's not great on Mac either. I have pretty much standard Firefox installation with only Ublock Origin added and it's extremely easy to get 16" Macbook Pro hot when Safari handles the same load without too much heat.