<div dir="ltr"><div><div>Lubomir,<br><br></div>I'v removed almost every allocation that I could find. can you try this 8 patches and tell me if anything worked to reduce the cpu usage?<br><br><br></div><div>We can still do some stuff to not remove the animations  ( yup, I like them )<br>like using a square instead of a rounded - rect notification panel.<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 10:41 PM, Tomaz Canabrava <span dir="ltr"><<a href="mailto:tcanabrava@kde.org" target="_blank">tcanabrava@kde.org</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">another wasteful calls removed.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 10:36 PM, Tomaz Canabrava <span dir="ltr"><<a href="mailto:tcanabrava@kde.org" target="_blank">tcanabrava@kde.org</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">This patch remove some of uneeded animation calls.<br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 10:26 PM, Tomaz Canabrava <span dir="ltr"><<a href="mailto:tcanabrava@kde.org" target="_blank">tcanabrava@kde.org</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"><div>Well, another one here.<br>we were creating / removing the biggest tooltip string ( that can have up to 16 lines sometimes ) by allocking / freeing it *every* pixel moved.<br></div>now we cache it and do not free.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 6:23 PM, 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>On 14 January 2015 at 22:08, Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>> wrote:<br>
> i suspect that if we rasterize the whole tooltip (i.e. use QPainter's<br>
> methods on a surface) and disable the animation, it will be times<br>
> faster.<br>
><br>
<br>
</span>and by that i mean override ::paint() and do all the calculations and<br>
drawing in there and possibly only re-draw if the input data changed<br>
etc...<br>
that's a much larger re-work, but i think that custom drawing might be<br>
the most optimal way for the tooltip to perform well.<br>
<br>
lubomir<br>
--<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>