When someone is typing a message and the animated typing indicator appears, KWin's "Show Paint" effect reveals that the entire screen is forced to repaint at full refresh rate (60Hz for me). This spikes NeoChat's CPU usage to typically about 35%. When the typing indicator is not present, it normally idles at 0-1%. This still happens when NeoChat's window is completely occluded by other windows! The full-screen repainting pointlessly happens anyway. Graphics hardware: Intel HD 630 iGPU, 10th gen (https://ark.intel.com/content/www/us/en/ark/products/196449/intel-core-i7-10510u-processor-8m-cache-up-to-4-90-ghz.html) This is not new; it's been happening for ages and aged. I just finally got off my butt to report it.
I checked this, and I only saw repaints in NeoChat and CPU usage for NeoChat hit 1.3% maximum. I think this might be GPU related, maybe?
Very likely. My GPU is known to be underpowered. Still, it's only 4 years old, so I have to imagine more people are also hitting this kind of issue.
Oh yeah, not thinking GPU power related, but some sort of driver issue.
Is this even possible for us to fix? I would imagine Qt is in charge of painting the screen for us, so it's their problem
That, or KWin, or the toolkit. Not sure what layer of the stack of responsible for this. That said: 1. In principle, NeoChat could switch to a typing indicator that's static rather than animated, which would eliminate the possibility for this hto happen in the first place. 2. Right now with git master, I don't see any typing indicators at all.
Created attachment 181389 [details] Still lots of CPU usage Never mind, it looks like it's appearing in only *some* rooms. In the room where I see it, now it doesn't cause a full-screen repaint, but it does cause a full-window repaint. And unfortunately, even with newer better hardware (see `kinfo` dump below), I still NeoChat's CPU usage go up to about 15-18% while it's animating. See attached screenshot. Operating System: Fedora Linux 42 KDE Plasma Version: 6.3.90 KDE Frameworks Version: 6.15.0 Qt Version: 6.9.0 Kernel Version: 6.14.6-300.fc42.x86_64 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics Memory: 16 GiB of RAM (14.9 GiB usable) Graphics Processor: AMD Radeon 780M