Bug 483282 - On X11, Firefox picture-in-picture video lags while self-closing notifications are shown
Summary: On X11, Firefox picture-in-picture video lags while self-closing notification...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: performance (other bugs)
Version First Reported In: 6.0.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6, X11-only
Depends on:
Blocks:
 
Reported: 2024-03-11 19:45 UTC by Nelson
Modified: 2025-02-24 17:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nelson 2024-03-11 19:45:46 UTC
SUMMARY
When a Firefox picture-in-picture window is open and a timed notification comes on screen, the video is affected by terrible lag until the notification is gone or manually closed.

Not sure if this is even a KDE thing or a Firefox thing (but I don't see the problem on Firefox for Windows). Tested in LibreWolf too and it's the same.

It's reproducible every time (version 5.27 too).

STEPS TO REPRODUCE
1. Have a video playing in picture-in-picture mode in Firefox.
2. Wait for a notification to appear (KTeaTime notifications work every time to trigger this issue; but only the timed one when the tea is ready; not the one when the timer starts)

OBSERVED RESULT
While the temporary notification is visible, the video will lag a lot. Once the notification automatically closes, playback will continue normally. It will happen again on the next notification.

EXPECTED RESULT
Notifications do not affect video playback.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Using X11

ADDITIONAL INFORMATION
NVIDIA card, proprietary drivers; AMD CPU.
Notifications set to bottom right corner, if it matters. Single monitor.
Using standalone notifications widget in the taskbar instead of the entry in the system tray, which is deactivated.
This issue is 100% reproducible every single time and I have experienced it for as long as I can remember.
Apologies if this does not belong here; but I assumed it's worth a shot.
Comment 1 Nate Graham 2024-03-11 23:46:45 UTC
I can't reproduce this on Wayland. Can you?
Comment 2 Nelson 2024-03-11 23:57:44 UTC
(In reply to Nate Graham from comment #1)
> I can't reproduce this on Wayland. Can you?

I cannot.
On Wayland, the PIP video does not suffer any slowdown when a notification is visible.
It seems it only happens on X11.
Comment 3 Nate Graham 2024-03-13 02:02:47 UTC
Thanks.
Comment 4 smow 2024-03-13 13:01:54 UTC
For me every time a notification appear, it lags whole system, so it doesn't seem to be only Firefox specific.
However I don't recall having such issue with Plasma 5.27.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 47,0 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Comment 5 TraceyC 2025-02-24 17:58:19 UTC
Adding the x11-only keyword