[Sugar-devel] SVG performance

Walter Bender walter.bender at gmail.com
Sat Dec 13 16:04:15 EST 2008


It was easy enough to add the extra couple of lines to see if the
cache already exists. TA launches blazingly fast (after the very first
time you use it). But I do have two concerns: (1) now that TA caches
its images, which are language-specific, how do I catch a change in
language and then generate a new cache? I suppose I could make all the
filenames include a language-specific suffix of some sort, but that
seems kludgy. (2) When I update the activity, how will I know to
update the cached images?

-walter

2008/12/12 Tomeu Vizoso <tomeu at sugarlabs.org>:
> 2008/12/11 Marco Pesenti Gritti <marcopg at sugarlabs.org>:
>> On Thu, Dec 11, 2008 at 9:56 PM, Ivan Krstić
>> <krstic at solarsail.hcs.harvard.edu> wrote:
>>> On Dec 11, 2008, at 4:45 PM, Walter Bender wrote:
>>>> not a bad idea until we sort out this rendering issue.
>>>
>>>
>>> It's actually the right idea, period. Except where prohibited by space
>>> constraints, unchanging vector graphics should only be rendered into
>>> bitmaps once, and reused in that form until an environmental
>>> dependency (e.g. current screen resolution) changes.
>>
>> That's more or less the approach Benjamin icon cache takes, except for
>> the complications coloured icons introduces. It sounds like we should
>> make it available to activities.
>
> But Benjamin's cache only stores icons in a few well-known sizes,
> right? Not sure it would help in the turtle art case as-is.
>
> Regards,
>
> Tomeu
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list