Bug 487840

Summary: Certain games have very low framerate under Wayland, yet both the games and KWin report normal FPS
Product: [Plasma] kwin Reporter: Avraham Hollander <anhollander516>
Component: performanceAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: xaver.hugl
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Avraham Hollander 2024-05-31 15:06:57 UTC
SUMMARY
After upgrading my Gentoo system from Plasma 5.27 to 6.1 beta (6.0.90), both Genshin Impact and Honkai: Star Rail have poor performance under Wayland. Despite this, the DXVK FPS counter reports a stable 60 FPS with no stutters, and KWin's "Show FPS" effect reports 75 FPS (75 Hz monitor, changing it to 60 Hz did not help) that sometimes drops to around 60. I am not sure how to measure this, but it feels like it is below 30 FPS. The framerate drops more when there is more complex movement on the screen.


STEPS TO REPRODUCE
1. Have a system with Plasma 6.1 beta (6.0.90) running the Wayland session
2. Grab one of these games from Lutris or using the respective launcher from https://github.com/the-anime-team. It currently defaults to Wine-staging-tkg-9.8 and DXVK 2.3.1.
3. Run the game

OBSERVED RESULT
 The game is not running smoothly despite FPS counters saying it is.

EXPECTED RESULT
The game runs smoothy.

SOFTWARE/OS VERSIONS
Linux: Gentoo Linux 2.15 (6.9.3-tkg-bore-latency)
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
I don't have other games to reproduce this with. I tried with Little Kitty, Big City and it ran fine, but it's a much lighter game. Definitely worth more investigation.
Comment 1 Avraham Hollander 2024-05-31 15:20:51 UTC
I should have mentioned. I'm running an RX 6600 and a 1440p monitor. Max settings but 1.0 render resolution.
Comment 2 Zamundaaa 2024-06-05 09:52:30 UTC
I fixed some issues that could cause dropped frames after the beta was tagged; please re-test once 6.1 is out
Comment 3 Avraham Hollander 2024-06-07 12:54:25 UTC
(In reply to Zamundaaa from comment #2)
> I fixed some issues that could cause dropped frames after the beta was
> tagged; please re-test once 6.1 is out

After upgrading to kwin-6.0.90.1-r2 from Gentoo it's fixed, so it seems they pulled in your fixes. I'll close this for now.