[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Frantic (again)
That is how it works. No image is loaded more than once. My resource
loading class checks a cache first before loading from disk.
On Wed, 21 Jun 2006 08:02:37 -0700, "Kamilche" <klachemin@xxxxxxxxxxx>
said:
> David Mikesell wrote:
>
> > you have the explosions, the true memory hogs. I might have to rethink
> > those, or at least trim the frame length.
>
> From the screenshot, the explosions appear all the same. If that's
> true, try loading it once and using the shared loaded resource among
> your multiple sprites. That way you can have 1000 explosions going off
> at once for no memory hit, just a performance hit.
>
> --Kamilche
>