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

Tomaz Canabrava tcanabrava at kde.org
Wed Jan 14 16:36:02 PST 2015


This patch remove some of uneeded animation calls.


On Wed, Jan 14, 2015 at 10:26 PM, Tomaz Canabrava <tcanabrava at kde.org>
wrote:

> 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/8c5b6ef6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Only-update-the-rectangle-if-it-changed.patch
Type: text/x-patch
Size: 1640 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150114/8c5b6ef6/attachment.bin>


More information about the subsurface mailing list