<div dir="ltr"><div>Ok, it seems the SkyMapQDraw::paintEvent(..) is being called too many times. I tried to debug and find out why it is being fired too many times but the traceback was not very helpful. Here it is:</div><div><br><a href="https://paste.kde.org/pfszgabwk">https://paste.kde.org/pfszgabwk</a><br></div><div><br></div><div>Perhaps someone can shed some light on the traceback?</div><div><br></div><div>Regards,</div><div>Jasem</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 3, 2016 at 12:40 PM, Jasem Mutlaq <span dir="ltr"><<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm getting 9%-11% while paused. I disabled _everything_ including info boxes and it's still 9%. Needs to investigate further.<div><br></div><div>Regards,</div><div>Jasem</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, May 3, 2016 at 11:39 AM, Akarsh Simha <span dir="ltr"><<a href="mailto:akarshsimha@gmail.com" target="_blank">akarshsimha@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">KStars consumes 10% of my CPU when idling (clock stopped, nothing happening)<br>
<br>
The reason is, despite the stoppage of the clock and the complete lack<br>
of events (no mouse clicks; no mouse moves even!) the paintEvent()<br>
seems to be called and repainting at least overlays and infoboxes<br>
continuously.<br>
<br>
I'm attaching the output of callgrind. SkyMapQDraw::paintEvent(), and<br>
the resulting InfoBoxWidget::paintEvent() and FOV::draw() seem to be<br>
some of the main contributors.<br>
<br>
Does anyone have any advice on how we might be able to optimize this<br>
performance?<br>
<br>
Note: callgrind machinery was on only during idling.<br>
<br>
Regards<br>
<span><font color="#888888">Akarsh<br>
</font></span><br></div></div>_______________________________________________<br>
Kstars-devel mailing list<br>
<a href="mailto:Kstars-devel@kde.org" target="_blank">Kstars-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kstars-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kstars-devel</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div>
</div>