[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Frantic (again)
Another version is now available. There still may be performance issues
with a lot of enemies/explosions on slower machines, but the resource
problem has been mostly fixed. The image cache which prevented images
from being loaded more than once was also sucking up a lot of memory.
http://medievalelks.com
On Wed, 21 Jun 2006 11:16:45 -0400, "David Mikesell"
<dave_mikesell@xxxxxxxxxxx> said:
> 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
> >