[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Frantic memory usage



No, I haven't tried that.  Do you think laptop hard drives would keep
up?

Anyway, I'm down to a ceiling of ~42 Mb RAM total (~14 Mb loaded
images), so I'm not as concerned about this as I was a couple weeks ago.
  I need to start refocusing on the features :-)

On Fri, 21 Jul 2006 12:38:39 +0930, "Tim Ansell" <mithro@xxxxxxxxxx>
said:
> Hello,
> 
> Out of interest, have you tried loading the images on demand? 
> 
> I have found that computers and hard drives are fast enough these days
> to load the images as needed (as long as the animation doesn't run to
> fast). This way you may only keep 3-4 frames at one time.
> 
> Another option is to use something like PIL and Gif animations, this
> allows you to "seek" through the file and only load the images as
> needed.
> 
> Hope this helps.
> 
> Mithro
> 
> 
> On Wed, 2006-07-19 at 15:02 -0400, David Mikesell wrote:
> > And once again without the line wrapping...
> > 
> <snip very interesting article>
>