YouTube playback is low-fps (choppy, laggy) in R4.2 in Firefox starting from Fedora-40 templates.
I remember, that fullscreen playback in R4.1 was way better, much smoother. So, I tried old official templates but with the same Firefox profile, on the same 1080@60fps video, and found out an important thing:
If I use fedora-39 official template, the playback in Firefox 119 in fullscreen is smooth, almost flawless.
If I use fedora-40 or later official templates, the playback in Firefox 132 in fullscreen for the same video is not good, it plays like 15 FPS.
Note 1: If I make the Firefox window rather small, like 30% of the screen, the playback is smooth in both cases, with fedora-39 and fedora-40 templates.
Note 2: I have no frame drops, it’s not a CPU issue per ser, it’s regression in fedora-40 template or in Firefox that is provided their.
Note 3: I have cinema/theater mode off on YouTube, otherwise Qubes OS lags a lot more.
Any ideas, how should I restore smooth playback in Firefox? I think finding the workaround would help many people, who probably thinks that it’s Qubes OS to blame for the problem.
I installed flatpak version of Firefox and checked that YouTube playback on fedora-42 in flatpak version of Firefox is smooth (like it was on fedora-39).
If I open the same video on the same hardware but in native fedora firefox it is playing much worse (low-fps playback).
Qubes OS should address the issue, because it affects probably all users who plays YouTube or other media in Firefox.
Great. So, the question is how to fix it for 99,99% of other Qubes OS users who do not know and kind of suffer from terrible browser video playback starting from R4.2.