[Kde-games-devel] Saving overheads when resizing SVG

Burkhard Lehner Burkhard.Lehner at gmx.de
Mon Jun 4 04:36:41 CEST 2007


Hello,

What it amounts to is that we cannot use this flag to detect when we
> have more than one resize event to handle, IMO.


I'm not familiar with the internals of the Qt event queue, and how and why
there are two resize events.
Just a suggestion for a workarround for this problem:
The first resize event could trigger a short timer (maybe 200ms or even
less), and further resize events that arrive during the timer is running
restarts the timer again.
The the timer is done, the SVG is rendered with the size proposed by the
last resize event.
This way the intervall of SVG rendering could be reduced to at most 5 per
second, even if there are permanent resize events.

Just an idea, but maybe there are better solutions.

Burkhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-games-devel/attachments/20070603/77305a89/attachment.html 


More information about the kde-games-devel mailing list