[vtkusers] Application slows down

Jeff Lee jeff at cdnorthamerica.com
Wed Jun 18 06:56:59 EDT 2003


R K Shyamprakash wrote:

>Hi,
>       My application is used to load the stl file, visualize it and do few
>operations. In the beginning, the speed is really good. I frequently add the
>actors to renderer, then clear them(after certain operations) and again add
>new actors. After a while the application slows down a lot. I am using the
>method vtkRenderer.RemoveAllProps() method to clear the renderer. 
>
That doesn't clear out the renderer's actor collection.  that 
combination only works correctly if you added the actor via AddProp().  
try removing the actor explicitly via renderer.RemoveActor(actor)...  
Try to stick with AddXXX/RemoveXXX.

>Should I
>explicitly call
>ReleaseGraphicsResources() on vtkActor or its mapper?(I checked the source
>code, RemoveAllProps() does this for me). 
>
right, that is done internally so you should never have to do that.

>Else what could be the reason for
>application slowing down? Please help.
>
if the above suggestion doesn't work, try to pare down your app into an 
example that exhibits the same problem and post it.
-Jeff

>Thanks
>Shyam
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>  
>




More information about the vtkusers mailing list