Summary: | low (idle) fps/stutters with dynamic triple buffering | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Bernhard <micraft.b> |
Component: | performance | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | major | CC: | kde, nate, xaver.hugl |
Priority: | NOR | ||
Version: | 6.1.5 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=492319 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
kwin perf statistics
perf stats no readability checks |
Description
Bernhard
2024-09-13 17:43:06 UTC
Sorry, I forgot to add: I have no problems at all with "KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1" set in plasma-kwin_wayland.service, which is how I absolutely know that it is the problem. This sounds very much like Bug 492319. The symptoms you're reporting are identical, and in that case, it's also an AMD laptop, with two generations ago's CPU and GPU (7840U + 780M). Tentatively marking as a duplicate. *** This bug has been marked as a duplicate of bug 492319 *** I don't agree, I have absolutely no graphical corruption on Wayland, only stutters. Ok, un-marking for now. Hopefully the KWin developers can sort this out. Please set `KWIN_LOG_PERFORMANCE_DATA=1` and attach the csv file KWin puts in your home directory here. It would be useful if you'd cut them off at a time where the lags are happening (just duplicate the file when it happens). Created attachment 173851 [details]
kwin perf statistics
the stutters start roughly 10s from the end
I've attached the file, hope it helps. As you probably noticed, it doesn't take long to trigger for me. As soon as I start firefox, kwin it starts lagging and mostly doesn't recover. If there is anything else I can help with to make debugging easier please let me know. In those last 10s more than 50% of frames are dropped. According to my debug tool, rendering finishes in time though. This could be caused by 1. the commit thread not getting enough CPU time and missing the deadline that way 2. commit scheduling delaying commits wrongly sometimes 3. OpenGL render time queries not matching buffer readability checks We've seen 3 happen before, caused by a driver bug on Intel. Please test with KWIN_DRM_DISABLE_BUFFER_READABILITY_CHECKS=1 set, which should rule it out. Created attachment 173892 [details] perf stats no readability checks (In reply to Zamundaaa from comment #8) > We've seen 3 happen before, caused by a driver bug on Intel. Please test > with KWIN_DRM_DISABLE_BUFFER_READABILITY_CHECKS=1 set, which should rule it > out. Looks pretty much the same to me unfortunately |