Alt-Tab is very slow (> 1s) and freezes up the desktop

I have a very slow response when switching tabs on my desktop. It’s a Fedora 40 KDE version, with KDE plasma 6.1.2.

The problem manifests itself when I alt-tab. For a quick task-switch, (brief alt-tab), there’s no problems, everything is quite fast. But when I actually want to see all my windows, it’s annoyingly slow - it takes between one and two seconds. And also when I release the alt-tab, the same happens, my entire system is frozen for about the same amount of time. The same happens with Alt-` (switch windows of the same app).

I’m 99% certain this is not my computer’s fault - I have Ryzen 9 7900x with 64GB of RAM, and an AMD Radeon RX6700XT card - these should be eating the stuff. And it generally does, just the tiny things like this one are sometimes glitchy.

Changing the Visualisation (in Task Switcher settings) does not solve the problem, even downloading new task switchers.

The searches online had lead me nowhere - switching themes (from Breeze or Fedora defaults) does nothing to help. I’ve read online things like adding TabBox → DelayTime to config (there’s no place in the UI to change this), but it also does nothing.

What could be the problem? Where could I be looking into it? How could I go about gathering more information, at least?

Why is my system freezing on the task switcher action?

2 Likes

If the issue goes away when you switch to the Large Icons visualization, then it’s probably 479250 – Brief screen freeze when opening Thumbnail Grid tabbox.

I also have this issue.
I’m using Arch Linux with KDE Plasma 6.1.3 with Ryzen 7 7840HS, 32GB RAM and RTX 2060.

I had the same problem (hiccup freeze on alt-tab, or when hovering on task bar and getting that preview show-up) for the past month, very disturbing.

I’m running an arch-based system, updated this morning (2024-09-05) (plasma-desktop 6.1.4-1), and the problems seems gone.

Hopefully it’s due to the update and not random tweaking I forget about.

By toggling off the “show selected window” under the task switcher settings worked for me.

KDE version 6.0.0
Plasma 6.0.3
Fedora 40

5 Likes

Csaba’s solution worked well for me, as previously this caused heavy stuttering on my rather modern system and now it’s gone.

KDE Frameworks 6.7.0
KDE Plasma 6.2.2 on Wayland
Gentoo

I also had this issue, csaba solution fixed it, although this seems like a bug that should be fixed, I was getting the huge stutters on a ryzen 9 7900X with 32gb total ram, 10g+ ram available and cpu only under 10% load when alt tabbing so there seems to be something wrong.

Just here to say that turning off ‘show selected window’ also stopped the issue for me too.

But that I have had a session running for a couple of weeks now, and alt-tabbing was fine until it wasn’t.

Operating System: EndeavourOS
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 96 GiB of RAM (94.2 GiB usable)
Graphics Processor: NVIDIA GeForce GTX 1080 Ti

Same problem, and the suggested solution of turning off “Show selected window” solves it.

Like @teesdale mentioned, the lag seems to increase over time, like something is leaking somewhere.

If there’s any kinda of trace or dump I could make to provide more insight, I’d be happy to.