Bug 423935 - Spinner icon consumes too much CPU cycles
Summary: Spinner icon consumes too much CPU cycles
Status: RESOLVED DUPLICATE of bug 404604
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-06 16:04 UTC by ParsaMousavi
Modified: 2021-03-19 20:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Networks widget spinner (5.42 KB, image/png)
2020-07-06 16:05 UTC, ParsaMousavi
Details
Discover spinner (35.71 KB, image/png)
2020-07-06 16:06 UTC, ParsaMousavi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ParsaMousavi 2020-07-06 16:04:46 UTC
Spinner icons consumes pretty much high CPU when they're rotating for example when I try to connect to Wi-Fi it happens on the "Networks" icon(as in the first attachment) until the connection is fully made and the same problem with Discover(i.e second attachment).Looks like the spinner keeps rotating as fast as it can instead keeping a steady and slow pace.


STEPS TO REPRODUCE
1. Open Plasma Discover or connect to Wi-Fi using the Network plasmoid either in system tray or as a standalone applet.
2. Monitor the CPU usage of the "plasmashell" process.

It consumes as high as almost 20% of the CPU in my system.


Whereas it should rotate at a steady and slow speed.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.3.0-46 / KDE Neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2
Comment 1 ParsaMousavi 2020-07-06 16:05:43 UTC
Created attachment 129942 [details]
Networks widget spinner
Comment 2 ParsaMousavi 2020-07-06 16:06:12 UTC
Created attachment 129943 [details]
Discover spinner
Comment 3 David Edmundson 2020-07-07 08:21:45 UTC
Typically this is a sign of something else being the problem at a lower level.

Are you by any chance on one of those hybrid nvidia + intel graphic machines

kcmshell5 qtquicksettings

and changing the render loop to basic 
will "fix" it.

Confirm if that works, if so it's a known issue
Comment 4 ParsaMousavi 2020-07-07 10:21:16 UTC
Yeah I have both Nvidia and Intel GPUs but for now only Nvidia is being used by Plasmashell and KWin.And I set the "render loop" to "basic" , the situation got a little better but still the process "plasmashell" consumes more 10% of the CPU as shown by "System activity".
Comment 5 2wxsy58236r3 2020-07-07 11:57:37 UTC
I think I can reproduce the issue by krunner.

Steps to reproduce:
1. Call krunner by Alt+F2.
2. Enter any calculation, such as "15+12".
3. The result has been calculated but the spinner does not go away and keeps spinning - maybe krunner's bug?
4. Monitor the CPU usage in ksysguard. krunner consumes 6-7% CPU constantly.

KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15

CPU: Intel(R) Celeron(R) CPU N3050
GPU: Intel Integrated Graphics
Comment 6 Christoph Feck 2020-07-21 07:44:42 UTC
Requested information was added with comment 4; changing status for inspection.
Comment 7 Alexander Lohnau 2020-07-21 08:52:27 UTC
>The result has been calculated but the spinner does not go away and keeps spinning - maybe krunner's bug?

This has already been fixed with the 5.72 release.
Comment 8 Nate Graham 2021-03-19 20:03:24 UTC
We've done a lot of perf work with the spinner and it should be better now. Any additional issues would be examples of Bug 404604.

*** This bug has been marked as a duplicate of bug 404604 ***