enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.32k stars 286 forks source link

memory management #847

Open Binyamin-R opened 5 years ago

Binyamin-R commented 5 years ago

hey, my program draws a large amounts of objects, clears the scene using clf, and then again draws a large amount of objects. the problem is, that clf doesn't seem to clear the memory of the first round, which causes the program to be very slow when it draws the second round of objects (i'ts the same amount as the first round, and yet it is much slower). Do you know why this happens/ how it can be fixed? thank you

peach1995 commented 5 years ago

you can retain these object.when it draws the second round of objects, you needn't create it.You can change the height and width of the old object and avoid memory leak