Hi Amy,<br><br>Thank you for your answer !<br><br>What I want to do it's to manage a scene with a lot of actors, and if I don't free memory when I hide an actor, it can be a big problem. Indeed, I will have a lot of memory reserved but don't used. The only way I find to free this memory is closing the vtkRenderWindow, which is not a great solution... If I remove the actor or if I delete it, the memory is not freed.
<br><br>I don't mind if I need to re-read data or re-execute filters. <br><br>Moreover, I notice that the memory is freed if I delete the vtkRenderWindow, and if I re-open it there are no compute, the display is immediate. So I don't understand why there's a lot of memory used even if my actor is hide. Can you explain that ?
<br><br>Regards<br><br>Nicolas Cathaud<br><br><div><span class="gmail_quote">2006/4/27, Amy Squillacote <<a href="mailto:amy.squillacote@kitware.com">amy.squillacote@kitware.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Nicolas,<br><br>Assuming that you're saying you see a memory increase just before VTK<br>first renders your model, then the reason is VTK's demand-driven<br>pipeline. VTK does not read data, run filters, etc. until something
<br>tells it to (rendering, in your case).<br><br>This should also explain why the memory isn't freed when you hide<br>part of your scene; memory was allocated when these parts of your<br>scene were first rendered, and if the memory was freed just because
<br>you weren't rendering that part of the scene, then data would have to<br>be re-read, filters re-executed, etc. when you wanted to render that<br>part of the scene again.<br><br>- Amy<br><br>At 11:31 AM 4/27/2006, Nicolas Cathaud wrote:
<br>>Hello everybody,<br>><br>>I have many questions about vtk and memory. When I load a big model with VTK<br>>(nearly 300.000 triangles), I notice that the memory clearly increases just<br>>before display. I just want to know if it's possible to avoid this, even if
<br>>I lose in movement's fluidity. I can't find what consume this memory, and<br>>I'm curious to know the reason of that. Is it an openGL mode which allocate<br>>a lot of memory in order to increase the performance ? Is it the data
<br>>structure of vtk ?<br>><br>>My second question is how to free this memory when I want to hide an element<br>>of the scene. Indeed, I have many actors in my scene, and I want to have the<br>>possibility to hide or show this actors, so I use the commands "AddActor"
<br>>and "RemoveActor", but it didn't free the memory when there are no actor in<br>>the scene.<br>><br>>Thank you for reading this message.<br>><br>>Regards.<br>><br>>Nicolas CATHAUD<br>
><br>><br>><br>>_______________________________________________<br>>This is the private VTK discussion list.<br>>Please keep messages on-topic. Check the FAQ at:<br>><a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>>Follow this link to subscribe/unsubscribe:<br>><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br></blockquote>
</div><br>