[vtkusers] vtkUniformVariables memory leak
cdavid.tran at gmail.com
Sat Aug 16 01:31:08 EDT 2014
I set up a shader for my vtkActor by calling the setPropProgram method of my
(assigning it a vtkShaderProgram2):
Then in a loop I am constantly updating a uniform variable (called time
which increments as time goes by) in that shader by calling setUniformit:
int time = 0;
time += 1;
if (time > 500)
time = 0;
I see the process in the Task Manager and since the time variable is
constantly being incremented, the amount of memory used by the program keeps
growing until it uses all the RAM.
Is there a particular place where I should put the setUniform calls to avoid
this memory leak;
or is this a bug inside of vtk itself.
View this message in context: http://vtk.1045678.n5.nabble.com/vtkUniformVariables-memory-leak-tp5728234.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers