| Summary: | KWin Wayland with Nvidia leads to weird shuttering for certain proton game (逆転裁判456 or Apollo Justice: Ace Attorney Trilogy) | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Qu Wenruo <quwenruo.btrfs> |
| Component: | compositing | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | nate, xaver.hugl |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | 6.0.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Qu Wenruo
2024-03-13 08:21:57 UTC
Just to be extra safe, the game only supports borderless and windowed mode. It should be unrelated to the Vsync change for full screen game. Furthermore it should be a KWin wayland compositing Vsync bug, as nested gamescope compositor solves the shuttering completely in Wayland mode. Retried on kwin 6.0.2, still the same result. On X11 everything is fine, On Wayland the game shutters heavily. So rollback to X11. Just to mention, my memory may not be that accurate, but in Kwin 5.x wayland, it also seems to have some shuttering, but not as series. Do no have the KDE 5 environment to retry X11/Wayland comparison though. If there is certain graphic workload to reproduce, I'm pretty happy to try. I'm not sure if it's the same bug of Xwayland. As if I go with gamescope for the game, the shuttering is just gone. The issue is a race condition, it can be triggered or "fixed" by lots of factors, including using a different or nested compositor. Until it's fixed, all glitches with the proprietary NVidia driver can be assumed to be that problem OK, that sounds reasonable. I guess the best way I can go is never buy any laptops with NVidia dGPU any more. Just curious, would going NVK be a way to solve it? Yes, Nouveau (and the new replacement for it) doesn't have this problem. It'll soon be fixed in the proprietary driver as well. Just a final question. My laptop has two USB-C with DisplayPort alt mode, one is wired to AMD iGPU, the other wired to Nvidia dGPU. And all my previous report is using that Nvidia dGPU to render and output everything. However today I switched to go back using that USB-C port wired to AMD iGPU, and the output and KWin are all handled by AMD iGPU (nvidia-smi shows nothing when idle at desktop). Then if I run the game again, the game shows up in nvidia-smi, so I believe it's rendered by NVidia dGPU but output still handled by iGPU (hybrid). In that case I also see no shuttering at all. Does the regressed NVidia closed-source bug can also explain this observation? |