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.
IndexSuggestions & BugsSoftware Bugs › Lights bug - Memory waste
Page Index Toggle Pages: 1
Lights bug - Memory waste (Read 5287 times)
Lights bug - Memory waste
Jan 3rd, 2008, 5:06pm
 
There is a severe memory leak when using lights in OPENGL mode (P0124):
PGraphicsOpenGL.java:
  .directionalLight() and .pointLight() are both calling
  .glLightNoAmbient() which then creates a new FloatBuffer
each time it is invoked, which normally happens for each frame. The code should be changed to generate the FloatBuffer only one time! This bug causes massive invocation of the garbage collector.
Re: Lights bug - Memory waste
Reply #1 - Jan 3rd, 2008, 7:33pm
 
thanks for looking into that.

have you tested this with the latest release?

if so, please file a bug report in our bugtracker:
http://dev.processing.org/bugs/search.cgi

... and please don't double post.

thanks!
F
Re: Lights bug - Memory waste
Reply #2 - Jan 4th, 2008, 1:11pm
 
Yes, I've tested it a couple of weeks ago with the same result and I looked into the latest code which showed that the FloatBuffer is still created within that function for each call - and yes I've posted it to dev.processing.org/bugs yesterday (but I can't find it there anymore - ???!?!?!)
Re: Lights bug - Memory waste
Reply #3 - Jan 4th, 2008, 5:36pm
 
ok can't find it either.
can you submit it again?

thanks
F
Re: Lights bug - Memory waste
Reply #4 - Jul 28th, 2008, 11:15pm
 
Fixed for release 0144.
Page Index Toggle Pages: 1