[Kstars-devel] KStars idling CPU usage
Jasem Mutlaq
mutlaqja at ikarustech.com
Tue May 3 10:27:15 UTC 2016
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:
https://paste.kde.org/pfszgabwk
Perhaps someone can shed some light on the traceback?
Regards,
Jasem
On Tue, May 3, 2016 at 12:40 PM, Jasem Mutlaq <mutlaqja at ikarustech.com>
wrote:
> I'm getting 9%-11% while paused. I disabled _everything_ including info
> boxes and it's still 9%. Needs to investigate further.
>
> Regards,
> Jasem
>
>
> On Tue, May 3, 2016 at 11:39 AM, Akarsh Simha <akarshsimha at gmail.com>
> wrote:
>
>> 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
>>
>> _______________________________________________
>> Kstars-devel mailing list
>> Kstars-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/kstars-devel
>>
>>
>
>
> --
> Best Regards,
> Jasem Mutlaq
>
>
--
Best Regards,
Jasem Mutlaq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20160503/bce0d2d5/attachment.html>
More information about the Kstars-devel
mailing list