Patches concerning the speed of mouse-movement over the profile.

Tomaz Canabrava tcanabrava at kde.org
Wed Jan 14 16:26:52 PST 2015


Well, another one here.
we were creating / removing the biggest tooltip string ( that can have up
to 16 lines sometimes ) by allocking / freeing it *every* pixel moved.
now we cache it and do not free.

On Wed, Jan 14, 2015 at 6:23 PM, Lubomir I. Ivanov <neolit123 at gmail.com>
wrote:

> On 14 January 2015 at 22:08, Lubomir I. Ivanov <neolit123 at gmail.com>
> wrote:
> > i suspect that if we rasterize the whole tooltip (i.e. use QPainter's
> > methods on a surface) and disable the animation, it will be times
> > faster.
> >
>
> and by that i mean override ::paint() and do all the calculations and
> drawing in there and possibly only re-draw if the input data changed
> etc...
> that's a much larger re-work, but i think that custom drawing might be
> the most optimal way for the tooltip to perform well.
>
> lubomir
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150114/2a0cdd33/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Do-not-free-the-membuffer-reuse-it.patch
Type: text/x-patch
Size: 1624 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150114/2a0cdd33/attachment-0001.bin>


More information about the subsurface mailing list