Bug 486578

Summary: Moving the cursor when screen-sharing causes the stream to drop frames, stutter and skip back and forth from the previous frames
Product: [Plasma] kwin Reporter: sophisticatedbystander
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sophisticatedbystander 2024-05-04 14:53:09 UTC
SUMMARY: 
Moving the cursor when screen-sharing causes the stream to drop frame-rate, and stutter a lot, and it seems that it stutters back and forth with a previous frame. I was able to recreate this same issue with chromium based browsers/applications as well as non chromium ones, eg. firefox, discord-screenaudio (this app does not use electron), etc. And to rule out an issue with the services, i tried it on various services where i can screen share, discord, jitsi meet, signal, matrix/element and was able to notice the same issue. One noticeable thing was that this does not happen with something like obs, regardless if i stream or record and the same is with spectacle if i record with that. And this stutter happens regardless if a particular window/game is selected or the entire screen is being shared. Another thing, that i noticed was that, in games that disable cursor, for e.g any fps games, DOOM, Apex legends, the stream does not stutter when moving the mouse, but in the menu of these games, when i move the cursor it stutters. And i tried the same on Gnome wayland, with all the latest packages, and im not able to replicate this issue.


STEPS TO REPRODUCE
1. Start a screen-share
2. Move your cursor
3. Observe it from the other end

OBSERVED RESULT
The observer of the stream on the other end can see that the stream stutters when the cursor is being moved

EXPECTED RESULT
The stream should be smooth and should not stutter

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Arch Linux, latest packages
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION :

Similar is also experienced by others that are not on wayland but on X11 on Plasma, as mentioned in this Github issue here.
https://github.com/Vencord/Vesktop/issues/545

As i cannot upload large files here, im attaching the link to the video files uploaded on peertube

This is the video where we can see the stutter when the cursor is being moved on the bottom of the video, KDE Plasma
https://peertube.otakufarms.com/w/2zhTZAddhGrGYxKF8bCeMM

This is on GNOME and we do not see any stutters when moving the cursor
https://peertube.otakufarms.com/w/hQGVJhQthJXjohahAP7unw
Comment 1 sophisticatedbystander 2024-05-04 17:01:31 UTC

*** This bug has been marked as a duplicate of bug 486081 ***