| Summary: | Kwin More Than Doubles CPU Usage During Normal Desktop Operations | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | kdeish |
| Component: | performance | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | CLOSED NOT A BUG | ||
| Severity: | normal | CC: | kdedev, kubrick, nate, nicolas.fella, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.5 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
kdeish
2025-05-17 08:17:10 UTC
I'm not saying you're right or wrong, just criticizing your methodology: On modern CPUs, you cannot compare % of CPU usage like you do because you have no idea what you are comparing against: CPUs don't run at the same frequency, and on machines with efficiency cores, some cores are much slower but much more power efficient. Therefore if you optimize your code, you might get a program which has higher CPU time (which is where the % from top comes from) but less power usage. Specifically, if you write easily uninterruptible and parallelisable code, the kernel will schedule it very differently than inefficient code that will keep a CPU busy and make its frequency increase. Again, I'm not saying that this is happening here and that KDE has become more efficient, just that the methodology is wrong. Also, modern DEs, for better or worse, tend to prioritize frame generation and will do things like triple buffering specifically to keep the GPU busy and clocked high so that animations are smooth. Maybe all you need is to set KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1 in your environment? > FYI: mpv skips Kwin
It does not.
|