I have a project on which I have to render thousands of different screenshots of a scene. It is basically a for loop that changes the scene, calculates some stuff and renders. However after around 2000 I blender complains that it is out of memory. In fact at each iteration it shows that the usage of memory is increasing, but I don't understand why, since I am not adding new elements to the scene and i am not keeping information from previous iterations.
I guess that there is some variable which is not being free in the loop. However I have no idea on how to find out that. Do someone have any ideas?
EDIT: