Bug 488821 - [Nvidia/Intel] Triple Buffering causes stutter/lag
Summary: [Nvidia/Intel] Triple Buffering causes stutter/lag
Status: RESOLVED DUPLICATE of bug 488843
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (show other bugs)
Version: 6.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-06-20 20:45 UTC by rickard
Modified: 2024-06-25 14:37 UTC (History)
4 users (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 rickard 2024-06-20 20:45:27 UTC
Seems like the new triple buffering causes window movement to stutter under wayland with Nvidia hardware.

1. Run KDE like normal. Moving windows around is stuttering, like it's locked at 60hz or less.
2. Make sure KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1 is set and restart KDE. Window movement is smooth again.

Linux 6.10-rc4
KDE 6.1
Driver: Nvidia 555.52.04
Comment 1 Nate Graham 2024-06-20 23:08:21 UTC
If you're using X11, this might also be Bug 475468. See if turning off floating panels and adaptive transparency help at all.
Comment 2 rickard 2024-06-21 05:57:07 UTC
(In reply to Nate Graham from comment #1)
> If you're using X11, this might also be Bug 475468. See if turning off
> floating panels and adaptive transparency help at all.

I yes I am aware of that bug and I have floating panels off and transparency set to opaque already.
I'm using Wayland and this stuttering was introduced in 6.1 and seems to be caused by the new Triple Buffering feature.
Comment 3 dustin 2024-06-23 00:05:35 UTC
I experienced similar issues with this and similar issues to Bug 488860 . Like the other bug, I also saw 'GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)' in journalctl. 

KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1 also fixes all of my issues. 

My system is using an AMD iGPU to drive the display with and Nvidia 3080ti dGPU w/ 550.90.07 for render offloading. Before setting the environment variable the iGPU was maxing out and lagging the rest of the system, afterwards it was back to normal usage. Some games also had internal UI flickering. This is with Wayland and things seem to be worse at 155hz vs. 60hz. 

Hope this helps.
Comment 4 rickard 2024-06-23 04:31:18 UTC
Yes, seems to be the same bug more or less. Then it isn't restricted to Nvidia only, seems to happen with Intel too.
Comment 5 Zamundaaa 2024-06-24 13:52:14 UTC

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