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 <[email protected]>:
> 2008/12/11 Marco Pesenti Gritti <[email protected]>:
>> On Thu, Dec 11, 2008 at 9:56 PM, Ivan Krstić
>> <[email protected]> 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
_______________________________________________
Sugar-devel mailing list
[email protected]
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to