I am using the git version of Krita on Gentoo linux and I just did an update a couple days ago. Everything was fine before the update but now the UI is super laggy. Scrolling through the brush presets it very slow and stutters. It is the same when I resize my brush with keyboard shortcuts. However, when painting there is no performance issues. And after a bit of drawing it starts to eat up my ram causing my whole system to stutter.
My system info: Operating System: Gentoo Linux
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.3-gentoo-x86_64
OS Type: 64-bit
Processors: 12 × Intel® Core™ i7-5820K CPU @ 3.30GHz
Memory: 15.5 GiB of RAM
Should I try to rebuild Krita, or is there some other solution?