Wayland-Kwin slowdown AMD

I’m running NixOS and KDE 6.2.4. When i went to update my system in the morning as I do every morning on the 21st of Dec.
After the update completed when I would go to open any browser or game it would make the system start to stutter or lag every 5-10 sec. if you don’t open a browser its fine with a terminal or something open. if its a game it will be fine for about 6 min then it starts to lag. when I restore to before the update the system is fine.

I checked an its not in x11. Journal is not saying anything relevant. Since I don’t have any info to go on I can’t really make a bug report.

The weird thing about it is if you have more then one virtual desktop in my case 4. and you move away from that 1st one the system is fine an doesn’t have the issue. but when you go back to the first one the lag/stutter is there. I have watch btop and system monitor to try an see if anything spikes but nothing. .plasmashell-wr, .plasma-systemm, and .kwin_wayland-w are at the top between 0.7% and 3.5%
I’m at a loss an have no idea how to get more data to make a proper report.
If needed I would be more then happy to paste bin my nix configs if that will help but I haven’t changed them since the 2nd of the month.

System:
  Host: elite-garuda Kernel: 6.12.6-cachyos arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.2.4 Distro: NixOS 25.05 (Warbler)
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME X570-PRO v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 5013
    date: 03/22/2024
CPU:
  Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 4275 min/max: 550/4426 cores: 1: 4332 2: 4087 3: 4324
    4: 4322 5: 4353 6: 4325 7: 4324 8: 4323 9: 4324 10: 4324 11: 3733 12: 4324
    13: 4325 14: 4318 15: 4348 16: 4321
Graphics:
  Message: Required tool lspci not installed. Check --recommends
  Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: N/A resolution: 3440x1440~144Hz
  API: Vulkan v: 1.3.296 drivers: N/A surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Texas Instruments PCM2900C Audio CODEC
    driver: hid-generic,snd-usb-audio,usbhid type: USB
  API: ALSA v: k6.12.6-cachyos status: kernel-api
  Server-1: PipeWire v: 1.2.6 status: active
Network:
  Message: Required tool lspci not installed. Check --recommends
  IF-ID-1: enp6s0 state: up speed: 1000 Mbps duplex: full
    mac: 
  IF-ID-2: wlan0 state: down mac: 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb type: USB
  Report: hciconfig ID: hci0 state: up address:  bt-v: 4.0
Drives:
  Local Storage: total: 4.68 TiB used: 2.89 TiB (61.8%)
  ID-1: /dev/nvme0n1 vendor: HP model: SSD EX920 1TB size: 953.87 GiB
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 980 PRO 2TB size: 1.82 TiB
  ID-3: /dev/sda vendor: OCZ model: VERTEX3 size: 111.79 GiB
  ID-4: /dev/sdb vendor: Western Digital model: WD20EZAZ-00L9GB0
    size: 1.82 TiB
Partition:
  ID-1: / size: 1.8 TiB used: 1.41 TiB (78.4%) fs: btrfs dev: /dev/nvme1n1p2
Swap:
  ID-1: swap-1 type: partition size: 17.07 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme1n1p3
  ID-2: swap-2 type: zram size: 28.13 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 45.0 C mobo: 41.0 C gpu: amdgpu temp: 47.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 616
Info:
  Memory: total: 32 GiB available: 31.25 GiB used: 7.97 GiB (25.5%)
  Processes: 464 Uptime: 0h 39m Shell: fish inxi: 3.3.35

Video_2024-12-23_21-54-00-ezgif.com

What was updated? Kernel? Mesa (the video drivers)? AMD firmware? Plasma?

This is all i can really find, I’m sadly new to nix coming over from arch. but I ran nvd history to check and see. Maybe there is a better way to look that i don’t know of.

--- Version 371:
<<< /nix/store/4hxbxvlrk69n2nrx4qrcdz9jcwq47ccv-nixos-system-elite-garuda-garuda-nix-subsystem-25.05.20241217.d3c42f1
>>> /nix/store/9vgx2jhb7m5yhiw4pkn3al9i1ay4ag24-nixos-system-elite-garuda-garuda-nix-subsystem-25.05.20241219.d70bd19
Version changes:
[U.]  #01  SDL2_image                                      2.8.2 -> 2.8.3
[U.]  #02  astyle                                          3.6.5 -> 3.6.6
[U.]  #03  crun                                            1.19 -> 1.19.1
[U*]  #04  eza                                             0.20.12, 0.20.12-man -> 0.20.13, 0.20.13-man
[U.]  #05  gamescope                                       3.15.15 -> 3.16.1
[U.]  #06  initrd-linux                                    6.12.5 -> 6.12.6
[U.]  #07  libcdr                                          0.1.7 -> 0.1.8
[U.]  #08  libcpuid                                        0.7.0 -> 0.7.1
[U.]  #09  libetonyek                                      0.1.10 -> 0.1.12
[U.]  #10  libphonenumber                                  8.13.48 -> 8.13.52
[U.]  #11  linux                                           6.12.5, 6.12.5-modules, 6.12.5-modules-shrunk -> 6.12.6, 6.12.6-modules, 6.12.6-modules-shrunk
[U.]  #12  nixos-system-elite-garuda-garuda-nix-subsystem  25.05.20241217.d3c42f1 -> 25.05.20241219.d70bd19
[U.]  #13  nss-unstable                                    20241031145424-88b4b72 -> 20241220194103-17d54f0
[U.]  #14  pcaudiolib                                      1.2 -> 1.3
[U.]  #15  pv                                              1.9.7 -> 1.9.15
[U.]  #16  rubberband                                      3.3.0 -> 4.0.0
[U*]  #17  scx_rustscheds                                  1.0.7 -> 1.0.8
[U*]  #18  vscodium                                        1.95.3.24321 -> 1.96.0.24352
[U.]  #19  xmlsec                                          1.3.5 -> 1.3.6
[U.]  #20  yt-dlp                                          2024.12.6 -> 2024.12.13
Added packages:
[A.]  #1  luajit  2.1.1713773202
Removed packages:
[R.]  #1  unit-network-online.target  <none>
Closure size: 3782 -> 3782 (248 paths added, 248 paths removed, delta +0, disk usage -30.0MiB).

I don’t know nix, but the items don’t on the surface seem relevant to anything, other than a kernel bump.

Yeah, that’s why i’m at a bit of a loss

Have you tried with an upstream kernel, as opposed to the CachyOS one?, to see if it persists there? I agree with Clay that the kernel is the only one of those updates that sticks out as a likely source, both in general for overall system functioning and specifically for AMD graphics issues.

Just tested with normal Nix kernel, mainline an zen an same issues on all 3 zen was even on 6.12.2. Vary good idea though I hadn’t thought to test that since it was the same kernel 6.12.5 as before the issue. but as it just changed to 6.12.6 an same issue still I’m not to sure.

I also tried resetting back to a stock browser profile but kitty an konsol an other weird apps still act up on virtual desktop 1. last thing t try is remove the other virtual desktops. I’ve been holing off since i have window rules set up.

*Edit - No luck with removing the virtual desktops either

Hmm, it might be worth trying an “old classic” troubleshooting tactic, creating a fresh user account and trying to reproduce the issue there, to figure out if it’s a system package assortment problem or a user-level configuration/cache/etc. problem.

Thank you for the help I ended up doing a fresh install and installing my apps an cli tools one by one. No issues so far.