| Summary: | Greeter constantly getting date time using time dataengine, wasting CPU | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Harald Sitter <sitter> |
| Component: | Screen locking | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | bshah, butirsky, kde, kdedev, nate |
| Priority: | NOR | Keywords: | efficiency-and-performance |
| Version First Reported In: | 6.2.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed In: | ||
| Sentry Crash Report: | |||
|
Description
Harald Sitter
2021-03-01 11:13:01 UTC
>Seeing as data engines are on their way out anyway it may be prudent to port away from the engine and instead use a QTimer+QTime::currentTime directly
There's code in the dataengine to watch for "skew events" such as being suspended and resumed, and we also have code for timezone changes.
There's also code in the abstract dataengine to align events to the minute.
I'm all for creating a new plugin to do this, rather than fixing the engine, but please don't replace with a pure QML solution as it will miss features.
(In reply to Harald Sitter from comment #0) > SUMMARY > The greeter (through the time dataengine) constantly polls the > currentdatetime even when that cannot possibly have changed because only a > second passed but the greeter only displays minute precision. On a desktop > system that's not really causing much. On the pinephone with plasma mobile > it constantly consumes almost 1% CPU with the associated power draw of that. Hey Harald, Is this still an issue? I looked at this after reading through bug 410856 In the latest screenshot, the kscreenlocker_greet process is using high CPU on various distros Yep, the problem still exists. I doubt it's related to the other bug report though. On a desktop system the load caused by this should be almost nil. |