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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Lights() in OpenGL mode
Page Index Toggle Pages: 1
Lights() in OpenGL mode (Read 574 times)
Lights() in OpenGL mode
Nov 27th, 2007, 5:34pm
 
There seems to be a kind of memory leak or a waste memory). When switching lights on, I can see processing eating away >= 250 kb !!!per second!!! withing the task manager, which then seems to be released by the gc. Maybe lots of new objects are created per frame when we turn on lights.
Re: Lights() in OpenGL mode
Reply #1 - Jan 3rd, 2008, 5:00pm
 
This bug is within PGraphicsOpenGL.java (P0124):
 .directionalLight() and .pointLight() are both calling
 .glLightNoAmbient() which creates a new FloatBuffer
each time it is invoked, so usually this happens for each frame
Page Index Toggle Pages: 1