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 mem (Read 487 times)
out of mem
Mar 9th, 2006, 6:01pm
 
I am developing a 3D game for web, using P3D.
My problem: the prog dies in processing, and on a few machines in web browser aswell, with out of mem (heap) error after loading like 15 smaller textures.
Question: how to allocate enough mem? i used standard loadImage.
i know java doesnt like allocating a huuuuge amount mem at the same time, but these allocations are small.. ~20k each..
some1?
Re: out of mem
Reply #1 - Mar 9th, 2006, 6:12pm
 
have you read through the memory stuff in the faq (re: how images are stored as uncompressed ARGB in memory, etc)? it doesn't sound like you should be running into trouble, unless you're doing something like loadImage() inside of draw(). perhaps post some code?
Re: out of mem
Reply #2 - Mar 10th, 2006, 10:46am
 
ive read through the FAQ now, adjusted the heap space, processing still fails to start the prog. ( -Xms128m -Xmx1024m  should really be enough though )
the applet still works fine in my browser though.
(i uploaded the .pde files here: http://nagyonlaza.hu/niki.rar) if i am not that tired to miss this huuuge bug, then i am only using loadImage's in constructors, which are only called from setup(), and 1 loadImage in setup().
Now i modify the code to see if loadPixels() updatePixels() can cause some mess, i am to load another pic and use PImage.mask instead...
Page Index Toggle Pages: 1