On Thu, Dec 02, 2004 at 06:43:40PM -0500, Albert Cahalan wrote:
> I don't know where it's all going, but --nostamps reduces
> memory usage by 75%. I'm at about 60 MB.
> 
> Plan?
> 
> Things that I think should be kept in memory:
> 
> a. sounds for all stamps visible in the selector
> b. image data for the active stamp
> c. icons for all stamps visible in the selector
> d. icons for next-to-visible stamps
> 
> So when you scroll down, Tux Paint should load:
> 
> a. sounds for the two stamps just made visible
> b. icons for the two stamps beyond that
> 
> The load_arbitrary function is lots of trouble.
> It kind of enforces everything to be kept in memory.

I think it's fine to keep 'everything' in memory, but to continue with
my original plan on managing just WHAT 'everything' is.

In other words... split up the stamps into collections of 10-20 each,
rather than load all 200 up at once.

-bill!
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to