STEPS TO REPRODUCE 1. use Wayland session 2. open System Monitor 3. go to 'Processes' page 4. scroll down/up OBSERVED RESULT scrolling is choppy/slow. After ~30 seconds the scrolling works as expected. EXPECTED RESULT normal scrolling SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.25.80 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.4 Graphics Platform: Wayland
Hmm, cannot reproduce.
I can reproduce this on Neon. Hotspot says the lag comes from KIconEngine, KIconLoader and KIconTheme. So I'd guess the lag comes from loading the process icons.
strace says to load a single icon System Monitor searches through a thousand(!) possible icon paths. For every single icon. No wonder why it's so slow. It also doesn't strip the parameters from the executable line when it construct the possible icon paths. For example when loading icons for vscode it ends up searching for nonsense paths like this. access("/usr/share/icons/hicolor/48x48/actions/code --type=zygote -.svgz", F_OK) = -1 ENOENT (No such file or directory)
Indeed we just use what is displayed in the column https://invent.kde.org/plasma/plasma-systemmonitor/-/blob/master/src/faces/processtable/contents/ui/ProcessTableView.qml#L163 Can that make that a bit smarter
Git commit df0645f0b0bc003ea230347eaea5173a928ad580 by David Redondo. Committed on 19/01/2023 at 08:27. Pushed by davidre into branch 'master'. Process table: Always use binary name for icon lookup Some processes have all the arguments included in the name, split on space to only use the binary. Also lowercase for good measure as most icons tend to be only lower case. M +1 -1 src/faces/processtable/contents/ui/ProcessTableView.qml https://invent.kde.org/plasma/plasma-systemmonitor/commit/df0645f0b0bc003ea230347eaea5173a928ad580