Bug 472066 - Frames dropped and heavy stuttering when compositing enabled
Summary: Frames dropped and heavy stuttering when compositing enabled
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.7
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-08 08:35 UTC by herrcrazi
Modified: 2023-09-12 20:56 UTC (History)
2 users (show)

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


Attachments
system specs (inxi) (2.67 KB, text/plain)
2023-07-08 08:35 UTC, herrcrazi
Details
kwin support info (7.00 KB, text/plain)
2023-07-08 08:38 UTC, herrcrazi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description herrcrazi 2023-07-08 08:35:43 UTC
Created attachment 160164 [details]
system specs (inxi)

Aloha !

KWin appears to cause dropped frames and heavy stuttering in games or graphical applications such as video players, OBS, Blender, etc, whenever compositing is enabled. This behavior disappears when compositing is disabled.

Games ran while compositing is enabled suffer from a significant drop in FPS and heavy stuttering. Movements appears not smooth, as if every few frames were dropped or swapped. This is also visible by using gltest (https://git.ralfj.de/gltest.git), altho the system needs to be somewhat loaded to really exhibit the issue.

I have tried disabling KWin's vsync by setting the following :
KWIN_X11_REFRESH_RATE=144000
KWIN_X11_NO_SYNC_TO_VBLANK=1
KWIN_X11_FORCE_SOFTWARE_VSYNC=1

This, however, did not solve the problem.
Comment 1 herrcrazi 2023-07-08 08:38:55 UTC
Created attachment 160193 [details]
kwin support info
Comment 2 Nate Graham 2023-09-12 20:56:32 UTC
This has been a major focus area in Plasma 6 and it should be substantially improved, if not completely fixed.