Bug 485816 - Games don't get active priority when running in fullscreen mode
Summary: Games don't get active priority when running in fullscreen mode
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compatibility (show other bugs)
Version: 6.0.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 19:26 UTC by djneba
Modified: 2024-04-24 15:39 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description djneba 2024-04-19 19:26:13 UTC
SUMMARY
Games that run in fullscreen mode are not seen as active (foreground) applications (windows), and loose priority due to this. If there are other apps running in the background (specifically playing audio and or video) like music players, video players or browsers, they "steal" the processing priority from the game. That should mean that the scheduler did not get the correct information. This leads to horrible gaming performance.

STEPS TO REPRODUCE
1. Launch Spotify, Youtube or similar app. Play something with sound and video.
2. Launch a game that runs in fullscreen using wine, Lutris or other.

OBSERVED RESULT
The game experiences horrible frame pacing, stuttering.

EXPECTED RESULT
The game runs smoothly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.28-1-lts (64-bit) Arch, Plasma 6.0.4 Wayland, pipewire 1.0.5
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Comment 1 djneba 2024-04-20 23:55:05 UTC
So, there is more. It seems to me that it randomly slows down the gaming performance, even in windowed mode. Like you guys had Plasma 5 down to perfection, and for some reason you decided to destroy a bunch of good work with the 6. Why? So you can have to do it again? What?