[Kstars-devel] KStars idling CPU usage

Akarsh Simha akarshsimha at gmail.com
Tue May 3 08:39:50 UTC 2016


KStars consumes 10% of my CPU when idling (clock stopped, nothing happening)

The reason is, despite the stoppage of the clock and the complete lack
of events (no mouse clicks; no mouse moves even!) the paintEvent()
seems to be called and repainting at least overlays and infoboxes
continuously.

I'm attaching the output of callgrind. SkyMapQDraw::paintEvent(), and
the resulting InfoBoxWidget::paintEvent() and FOV::draw() seem to be
some of the main contributors.

Does anyone have any advice on how we might be able to optimize this
performance?

Note: callgrind machinery was on only during idling.

Regards
Akarsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callgrind.out.2090
Type: application/octet-stream
Size: 162819 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20160503/61380a8f/attachment-0001.obj>


More information about the Kstars-devel mailing list