Bug 485907

Summary: Screen sharing have massive lags when moving mouse
Product: [Plasma] kwin Reporter: username <linx.system.adm>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: s+kde
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description username 2024-04-21 15:53:03 UTC
SUMMARY
Initially it was assumed that this was a bug in Chromium (https://issues.chromium.org/issues/333945842), but discussions suggested that KWin might be a suspect
This critically affects programs like Discord since screen sharing becomes almost impossible

STEPS TO REPRODUCE
1. Launch chrome or firefox
2. Open screen share demo https://henrik-and.github.io/pc_capture_constraints/
3. Click on "getDisplayMedia & applyConstraints" button
4. Open some video to better see the issue
5. Start moving mouse on streamed display and observe captured stream

OBSERVED RESULT
You will see massive lags when moving mouse pointer

EXPECTED RESULT
Smooth screen capture

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 6.8.7
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0