<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 9:15 AM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15 January 2015 at 02:56, Tomaz Canabrava <<a href="mailto:tcanabrava@kde.org">tcanabrava@kde.org</a>> wrote:<br>
> Lubomir,<br>
><br>
> I'v removed almost every allocation that I could find. can you try this 8<br>
> patches and tell me if anything worked to reduce the cpu usage?<br>
><br>
><br>
> We can still do some stuff to not remove the animations  ( yup, I like them<br>
> )<br>
> like using a square instead of a rounded - rect notification panel.<br>
><br>
><br>
<br>
</span>unfortunately the patches did not improve the performance much for me<br>
- it's still above 20%.<br>
but i suggest you skip any more fixes for this ATM, because we have no<br>
user complains.<br>
<br>
the allocations boosted it, but setText(), setPixmap() and the little<br>
graph drawing still require high CPU usage.<br></blockquote><div><br></div><div>We can also try to move the Profile to OpenGL ( I'v always wanted to learn that and that's a pretty damn good excuse. )<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
it started to smell to me as a FPU denormal issue, so i tested that<br>
because i've noticed the GCC uses FPU instructions for this particular<br>
part and the control word flag was unset, but it ain't the cause,<br>
unless Qt updates the FPU between calls.<br>
<br>
-O3 doesn't helps which means that calls to another library are heavy (e.g. Qt).<br>
<br>
i've also tried using S&H on refresh() to reduce the amounts of calls<br>
on power of two intervals and that is the only thing that helps, but<br>
reduces the smoothness of the tooltip itself and isn't pretty; a<br>
factor of 4 is tolerable but still caps at more than 16% CPU usage.<br>
<br>
perhaps there are other tricks to try, but i don't have the time.<br></blockquote><div><br></div><div>But I do have. :)<br></div><div>I'll try to do other things:<br></div><div>- use raster graphics<br></div><div>- do not use paths<br></div><div>- do not use translucency<br></div><div>- try to test the profile in other ways ( OpenGL, perhaps )<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
overall i'm very surprised that such as simple UI element is so slow<br>
in Qt. i've written *much more* complicated UI in other languages and<br>
frameworks and it was blazing fast compared to this.<br>
<br>
but like i said, leave it be for now IMHO.<br>
<br>
lubomir<br>
--<br>
</blockquote></div><br></div></div>