YouTube playback is low-fps (choppy, laggy) in R4.2 in Firefox starting from Fedora-40 templates

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.

1 Like

Update with a workaround:

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.

1 Like

Reportered as an issue here:

1 Like

Another workaround it to use picture-in-picture mode, this seems to speed up youtube by quite a lot for me.

Can you confirm, that installing flatpak version of Firefox also improves playback for you?

You can install without modification of template.

  1. Create new qube, set fedora-42-xfce template (or any other),
  2. In this qube install and run like that with --user flag:
flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

flatpak --user install org.mozilla.firefox

flatpak --user run org.mozilla.firefox
  1. Try YouTube playback of some 1080@60fps (or higher) video fullscreen .
1 Like

I can confirm that this works and reduces lags significantly.

1 Like

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.