We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Out of Memory (Read 378 times)
Out of Memory
Aug 2nd, 2006, 7:31pm
 
Hi everyone,
I am a total novis at pragraming and so forgive me if I ask obvious questions. I am trying to make a game using Processing but am experiencing problems with memory.

Does anyone know any reasons why my game should run out of memory after approx 5MB? I have no sound as of yet and so this total file size is made up of only .png files.

So far I have created a moving background and a moving character. I am attempting to create animated collectables (much like coins in mario games) which are made up from 19 images (stages of the animation). Obviously I will need lots of these items and so have made an object to use over and over again. This seems to cause me a lot of memory (and indeed slow down) issues. Does anyone know why this is and if there is any way to rectify this.

Thanks
Andy
Re: Out of Memory
Reply #1 - Aug 14th, 2006, 7:20am
 
Could you post any example code?
Page Index Toggle Pages: 1