[Sugar-devel] SVG performance
walter.bender at gmail.com
Mon Dec 8 07:51:54 EST 2008
I think the solution may be as simple as going back to GIF files.
Having made the conversion to SVG, it is much easier to create
internationalized versions of TA, but I am not taking any special
advantage of SVG during runtime...
On Mon, Dec 8, 2008 at 2:37 AM, Bernie Innocenti <bernie at codewiz.org> wrote:
> Walter Bender wrote:
>> I have been trying to speed up Turtle Art, which initializes much
>> slower (4x) since I converted from GIF to SVG. I've tried a lot of
>> tweaking, such as eliminating the linear gradients, in an attempt to
>> find out where the rendering bottleneck is (the file sizes are not
>> sizes are about the same) to no avail. Anyone have any experience with
>> such things?
> Some time ago, me and tomeu did some timing on loading, parsing and
> rendering the activity icons with librsvg within Sugar.
> I have not kept the raw output, but I remember that rendering was
> reasonably fast for most icons (10ms or so), and slowish for a couple
> of problem icons with too many polygons. One of these was indeed
> Our super-sophisticated secret profiler was something
> like this:
> from time import time
> start_time = time()
> # ... do something bad here...
> end_time = time()
> elapsed_time = end_time - start_time
> print elapsed_time
> // Bernie Innocenti - http://www.codewiz.org/
> \X/ Sugar Labs - http://www.sugarlabs.org/
More information about the Sugar-devel