Framerate briefly drops from 60 FPS to ~30 FPS on KDE Plasma / Wayland

I’ve been getting random framerate drops on KDE Plasma from 60 FPS to ~30 FPS. The problem usually goes away after entering the desktop overview or changing applications. Where things get weird (and kind of funny) is that I enabled the “Show FPS” Desktop Effect in settings to monitor the drops, and with that on the screen this never happens. It’s as if it knows it’s being observed and behaves.

My best guess for what’s actually going on is having something always redrawing on the screen is preventing the issue. But obviously it isn’t a good solution (and I can barely read the text anyway since it’s white-on-white for some reason). Any better solutions to this from people more experienced with KWin would be appreciated!

Information about my setup:

  • Arch Linux
  • KDE Plasma 6 (6.1.4)
  • Wayland
  • Nvidia GeForce RTX 4070 (nvidia-open 560.35.03)
  • HiDPI DisplayPort monitor
  • ICC profile enabled for color correction

I tried disabling triple buffer in ~/.config/plasma-workspace/env/kwin.sh with export KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1 or export KWIN_TRIPLE_BUFFER=0 and that didn’t work.

Please make a bug report about this at Log in to KDE Bugtracking System, under the component “performance”.
If you set KWIN_LOG_PERFORMANCE_DATA=1, KWin will drop a .csv file per display into your home directory, with data on the screen. If you do that and get those files, please attach them to the bug report.

Done. bugs dot kde dot org/show_bug.cgi?id=493450