Bug 478333 - Random stutters while gaming on Wayland session.
Summary: Random stutters while gaming on Wayland session.
Status: RESOLVED LATER
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.9
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-10 03:57 UTC by siamlights
Modified: 2024-01-02 11:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description siamlights 2023-12-10 03:57:08 UTC
STEPS TO REPRODUCE
1. Boot up a game (from my experience, Monster Hunter Rise on Steam, Monster Hunter Generations Ultimate on Ryujinx).
2. Proceed through the main menus, load up a heavy area in Rise, such as the beginning forest area, traverse around. For Gens U, the main hub seems to be enough.

OBSERVED RESULT
Both games stutter, and the stutters don't seem either GPU or CPU related. While the GPU is maxed out on Rise, it stays that way through the whole run and only stutters randomly rather than all the time. The footage for Gens U on Ryujinx is a bit blurry, but the CPU and GPU usage don't reach past 75%.
I should note that when I'm not recording, Rise stutters only while in Fullscreen/Borderless Fullscreen. The stutters are alleviated on Windowed mode. For Generations Ultimate, on the other hand, the reverse seems to be true. Having the emulator windowed will cause the game to stutter, but enabling Fullscreen removes all the stuttering.
Video for reference: https://streamable.com/ih8mie
It should be noted that I haven't been able to reproduce this problem inside an X11 session.

EXPECTED RESULT
No stutter. I have tried Windows, and Rise doesn't stutter there at all, other than the first run shader compilations.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Kinoite
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
A while ago, I opened a similar ticket on the GNOME Mutter bug tracker. With GNOME, the stutters were more severe as they affected the whole desktop rather than just the game window. However, MH Rise didn't stutter there, and in Plasma, FFXIV doesn't seem to stutter like it did for me in GNOME. That post might have more insight on the issue, so I'll link it here as well for reference. https://gitlab.gnome.org/GNOME/mutter/-/issues/3121
I'm beginning to suspect it might be a driver issue, but I can't be sure about it. I know Raven Ridge doesn't have the best Linux support, and I'm using a 2200G APU with integrated Vega 8 graphics. No overclocking on my system other than the RAM's XMP profile.
Comment 1 fanzhuyifan 2023-12-10 23:53:36 UTC
What GPU do you use?
Comment 2 fanzhuyifan 2023-12-10 23:54:51 UTC
Possible duplicate of 474725
Comment 3 siamlights 2023-12-11 23:46:54 UTC
(In reply to fanzhuyifan from comment #1)
> What GPU do you use?

I use a 2200G APU. It's basically a CPU+GPU combo, the graphics are Vega 8 Integrated. I don't have a dedicated GPU.

(In reply to fanzhuyifan from comment #2)
> Possible duplicate of 474725

I don't see a mention of any particular load in that report. For me, it only happens specifically while gaming and only in a few games. I don't get it while browsing or doing productivity tasks.
Comment 4 David Edmundson 2024-01-02 11:46:45 UTC
Performance is something that we are constantly improving. 
There isn't anything unique or useful information in this ticket that makes this actionable as an open ticket.