[vtkusers] re:Why am I always running low on memory?

Yixun Liu yxliu at fudan.edu.cn
Sun Sep 3 21:07:42 EDT 2006


Hi,

You can delete a filter immediately after its output has been past to its downstream filter. For example filter2->SetInput(filter1->GetOutput()); filter1->Delete();

Do you put renWin->AddRenderer() in a loop or call renWin->AddRenderer() often. Note that the same renderer will be added many  times in the renWin if you call AddRenderer() in a loop. Two or three renderers will make your program run very slow.

Cheers,

Yixun Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060904/77235843/attachment.htm>


More information about the vtkusers mailing list