News for hackers. Stuff that matters.
Re:Firefox 84.0 by antouank on Tuesday December 15, 2020 @10:59AM (#25431416)
> Additionally we'll ship an accelerated rendering pipeline for Linux/GNOME/X11 users for the first time, ever!
Re:Firefox 84.0 by ducktective on Tuesday December 15, 2020 @11:11AM (#25431564)
I'm seeing high CPU usage on YouTube after recent updates on Xubuntu. I think it started when they enabled GPU acceleration by default.

Previously I could watch even FHD videos without much fan noise, but after recent updates, fans spin at the max speed by playing even 480p quality vids. Anyone else?

Re:Firefox 84.0 by padenot on Tuesday December 15, 2020 @11:43AM (#25431944)
Would you mind capturing a profile? https://blog.paul.cx/post/profiling-firefox-media-workloads/... explains how.

It's very very very simple and quick, there is a video demo and a text explaining what to do, and then you can open a bug at https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&comp..., with the profile link (you can login with a github account or email). This will be triaged and hopefully we'll understand what's up. Please use a Nightly build or a Mozilla-provided build when doing so (so there are symbols). It's just a matter of downloading and untaring the tarball.

Please also attach a copy of `about:support` raw data (button at the top), so we can understand what your configuration is: desktop Linux systems can be pretty diverse and sometimes it isn't clear what works, what doesn't and why.

If you're playing 480p, then youtube might be serving you AV1, and this is (for now) using the CPU (trading a lot less bandwidth for increased CPU usage), you can check the codec it's using by right clicking on the video and clicking on `Stats for nerds`, there is the codec string. You can adjust your codec preferences in your youtube profile I believe.

Re:Firefox 84.0 by danielEM on Tuesday December 15, 2020 @06:40PM (#25436969)
Just did some tests on Firefox 83 and DOM reflow time grows exponentially with the depth of DOM tree. With grid elements of depth 10 single reflow takes seconds on my Ryzen laptop while on chromium is not noticable at all.
Re:Firefox 84.0 by muizelaar on Tuesday December 15, 2020 @06:48PM (#25437048)
Can you post a link to a test case?
Re:Firefox 84.0 by danielEM on Wednesday December 16, 2020 @06:00AM (#25441191)
Re:Firefox 84.0 by jansan on Tuesday December 15, 2020 @11:19AM (#25431669)
GPU acceleration is not a magic bullet it seems. In our case drawing large SVGs suddenly becomes really slow when GPU rasterization is enabled. Chrome has the same problem. I really hope we will see more polishing in this area and maybe a cooperation between Chrome and Firefox developers?
Re:Firefox 84.0 by ducktective on Tuesday December 15, 2020 @11:23AM (#25431711)
Thing is, when I play the same video with VLC which uses HW decoding, it doesn't even break a sweat. So I think there might be something wrong on the browser part...
Re:Firefox 84.0 by jansan on Tuesday December 15, 2020 @11:26AM (#25431745)
You can issue a bug report on https://bugzilla.mozilla.org/home Sometimes bugs are fixed really fast, sometimes never. Just give it a try.
Re:Firefox 84.0 by danielEM on Tuesday December 15, 2020 @12:40PM (#25432634)
There could be something related to FAN thresholds that resides in BIOS directly thus starting using GPU just slightly over some minimal limit might raise FAN speeds significantly and not be related to temperature raise as there is some inertia between temperature readings and real temperature inside GPU core.

I'm also experiencing FAN noise raise on my Ryzen APU based laptop.

Re:Firefox 84.0 by samoa42 on Wednesday December 16, 2020 @07:20AM (#25441702)
i mostly stopped bothering with in-browser video when mpv wiht youtube-dl integration came around. either drag the url to the player window or use an open-with addon.

hardware decoding, no ads, buffering as i please

Re:Firefox 84.0 by muizelaar on Tuesday December 15, 2020 @12:16PM (#25432345)
Do you have an example url for this?
Re:Firefox 84.0 by jansan on Tuesday December 15, 2020 @02:23PM (#25433940)
Here is a bug report that shows the issue on Chrome. It is roughly 7 times slower with hardware rasterization enabled:

https://bugs.chromium.org/p/chromium/issues/detail?id=114367...

This particular example is only slow on Chrome. Even if you move the edge of the shape into the viewport Firefox is much faster than Chrome. But I know from real life examples that Firefox becomes slow if handling large SVGs. I will have to investigate this and file a bug report.

Re:Firefox 84.0 by jansan on Tuesday December 15, 2020 @03:29PM (#25434820)
I checked again with our app on Firefox and performance is not that bad. Rendering gets a slower with large SVGs, but it is still good and there is not much difference between hardware rendering enabled and disabled. So I was either wrong about slow performance on Firefox or things have improved recently.
Re:Firefox 84.0 by penguin_booze on Tuesday December 15, 2020 @12:46PM (#25432714)
I'm on Linux. I stubled on webrender from a blog yesterday, and enabled it. My observation was the same - high CPU usage, so I then disabled. Got 84.0 today, and gave it another go. It appears to be behaving well so far. So I'm guessing there was some fix in 84.0 that made it work for me.
Re:Firefox 84.0 by krzyk on Tuesday December 15, 2020 @11:06AM (#25431504)
Does anyone know how to enable that?

I'm on Nightly so I should have it for some time already, but I'm not sure if it is on by default or should I tweak some value.

Re:Firefox 84.0 by rethab on Tuesday December 15, 2020 @11:11AM (#25431551)
Is this about WebRender? If so, here you go: https://www.omgubuntu.co.uk/2020/07/firefox-enable-webrender...
Re:Firefox 84.0 by muizelaar on Tuesday December 15, 2020 @11:31AM (#25431797)
What does "Compositor:" say for you in about:support?
Re:Firefox 84.0 by jdhawk on Tuesday December 15, 2020 @11:56AM (#25432089)
gfx.webrender.all

layers.omtp.enabled

layers.acceleration.force-enabled

Re:Firefox 84.0 by muizelaar on Tuesday December 15, 2020 @12:15PM (#25432330)
layers.omtp.enabled isn't used when WebRender is on.
Re:Firefox 84.0 by jdhawk on Thursday December 17, 2020 @10:03AM (#25456148)
ah, nice - thanks
Re:Firefox 84.0 by AshamedCaptain on Tuesday December 15, 2020 @11:54AM (#25432063)
Wait... GNOME only?
Re:Firefox 84.0 by muizelaar on Tuesday December 15, 2020 @03:03PM (#25434428)
Yep. We've seen bugs with different window managers so WebRender is only enabled in Gnome in 84 to minimize the risk of breakage. This restriction will be removed in subsequent releases.
Re:Firefox 84.0 by aosmond on Tuesday December 15, 2020 @03:15PM (#25434612)
Also, we have it enabled in nightly and beta for many more configurations already :). There are many bugs to fix, but we're working through them. This is the exact same treatment we gave Windows and OSX in previous releases this year.
Re:Firefox 84.0 by AshamedCaptain on Wednesday December 16, 2020 @08:04AM (#25442001)
I know the usual rational about users blaming Firefox and yadda yadda but I am rather not convinced this is how things should work in the open desktops. If there are clear bugs in other environments, file them and break them if necessary. The only potential exception I can see is when it's not clear if it's a bug or not..
Re:Firefox 84.0 by amarshall on Tuesday December 15, 2020 @12:35PM (#25432578)
Perhaps just by default, or a miscommunication. FWIW I’ve had WebRender force enabled on Sway (Wayland i3 clone) since FF 78 or so.
Re:Firefox 84.0 by tenacious_tuna on Tuesday December 15, 2020 @12:08PM (#25432245)
Yeah, that seems odd. I wonder if the update doesn't help/involve Weyland people, and if GNOME is an X11 holdout? I haven't been paying enough attention to know.
Re:Firefox 84.0 by wut42 on Tuesday December 15, 2020 @12:42PM (#25432667)
It's not clear, is it only for gnome users ?