Hi all,
I've been trying to optimize my sponge fractal scene some more (see
p.b.i) and I think I've found a bug in POV. It seems that the #undef
function does not work on arrays. That is to day, it does take the array out
of the variable name-space (i.e., I can't use it anymore) but it doesn't
seem to free up the used memory.
Why do I think this?
Because my scene allocates a large array. It then does stuff and creates
a lot of objects. I think clear the array and create a lot more objects. The
memory usage for this scenario is exactly the same as if I do the same
without clearing (#undef) the array.
I would think that when I #undef the array the objects created after it
would be able to use the freed up memory and reduce the peak memory usage.
Thoughts? Ideas?
--Rainer
Post a reply to this message
|