Originally posted by Michael_S
View Post
Announcement
Collapse
No announcement yet.
Firefox 94 To Start Using EGL On Linux - Better Performance, Lower Power Use
Collapse
X
-
Originally posted by SofS View PostIs WebGPU a good idea for normal users? I myself disable even WebAssembly and WebGL support.
* Unless you are blocking a webpage from using it which uses it in a way you don't use and thus making it faster to load that way. For example if you disable Javascript and the webpage loads faster because ads can't load anymore or something similar.
Comment
-
Originally posted by RealNC View PostSo how does that increase performance?
EGL is a relatively recent API made to fit modern needs.
Probably there is the chance for a smoother interoperability among parties, with reduced memory block copies and more resource sharing.
Imagine, for example, if you need to play a video in a browser: copying every frame from video memory to browser memory kills performance, letting the browser draw directly accessing the frame memory is better, but letting the browser control a GPU surface that draws the frame content without moving data at all is even better.
- Likes 1
Comment
-
Originally posted by blackshard View Post
Actually I don't know the technical details on what's under the cover.
EGL is a relatively recent API made to fit modern needs.
I believe the main reason that the EGL backend might be faster is that it's the newer, more maintained platform. New code is generally written with EGL in mind first, then possibly ported over to GLX later on if there's time to do so, and if that code isn't quite optimal nobody really has the time to fix it up. So it's just a matter of priorities.
Comment
-
Originally posted by M@GOid View PostThis is one step forward towards hardware video acceleration being enabled by default. Right now you need both launching FF with MOZ_X11_EGL=1 and activate VA-API on the about:config tab. With 94 only the VA-API step will be necessary.
I haven't yet seen FF fail to trip over itself and choke when using EGL, and it also introduces "oops" crashes from Crunchyroll's video player every 10-20 minutes that have never happened in multiple years with EGL disabled. (Though that's potentially VAAPI, since obv that isn't an option without EGL).
So IME it's still pretty badly broken - but now that it's the default, it'll probably get sorted out in another year or so. (Based on how long it's taken so far to fix the VAAPI bug they introduced early this year, 3 months after FINALLY starting to support HW accel for video decode... sigh...)
Comment
-
Originally posted by arQon View Post
Bit late to the comments here, but you can also force EGL support via about:config and avoid needing the env var.
I haven't yet seen FF fail to trip over itself and choke when using EGL, and it also introduces "oops" crashes from Crunchyroll's video player every 10-20 minutes that have never happened in multiple years with EGL disabled. (Though that's potentially VAAPI, since obv that isn't an option without EGL).
So IME it's still pretty badly broken - but now that it's the default, it'll probably get sorted out in another year or so. (Based on how long it's taken so far to fix the VAAPI bug they introduced early this year, 3 months after FINALLY starting to support HW accel for video decode... sigh...)
But I had stumbled upon some unsupported AMD APU, can't remember witch one exactly now, but it just didn't do the acceleration, don't remember crashes.
What distro and CPU/GPU/APU you use?
Comment
-
Originally posted by M@GOid View PostJust to check, I watched a 24min anime on Crunchyroll and it went fine. All with EGL and VA-API, of course.
> What distro and CPU/GPU/APU you use?
The HTPC that I watch most stuff on is a crappy Atom box (Baytrail). Interestingly, it does FAR better (performance-wise) with (h264) YouTube than whatever bastardised mess CR is using, which appears to take exactly as much as CPU as before. That suggests to me that the problems with CR are the result of issues with GBM/EGL explicitly rather than VAAPI, as the HTPC doesn't have HW support for VP9 or whatever it is that CR is using.
The HTPC is actually on 93 still, as I haven't gotten round to updating it for several weeks, but it's been forcing EGL support for a couple of months now.
It's interesting (to me, at least :P) that both the Atom (on FF) and the Pi (on Chrome), with very different underlying architectures, exhibit such very similar problems.
I'll update to 94 sometime in the next few days, but ATM we already know that VAAPI on Intel is basically broken in FF, so I'm expecting the crashes to continue for at least a few more months until the owner of that bug (who seems to be the only person actually advancing VAAPI in FF) gets round to looking at it. That's already taken 9 months (after it only working for 2-3 months after finally being implemented at all, years late) so I think it's fair to say that working video acceleration *on Linux* is a long way from being a priority for FF. (Understandable, but irritating).
Comment
Comment