[vtkusers] Deleting vtkActor takes long
Sean McBride
sean at rogue-research.com
Wed Nov 10 14:25:24 EST 2010
On Fri, 5 Nov 2010 11:02:51 +0800, Yang Yang said:
>I have a program to display about 50,000 spheres. It doesn't take too much
>time to display them(about 2 second), however, when I close the program,
>which will first delete all the actors, it takes a very long time(about 30
>seconds). When I debug the code, I found that everytime I pause the debug,
>the program stops somewhere shown in the call stack attached below. It seems
>that the program spends a lot of time in garbage collection, which I'm not
>quite clear how it works. Could anybody tell me how can I speed up the
>deleting actors, or at which direction I should look at. Any suggetion will
>be appreciated.
I don't have any advice for you, but I have also seen VTK's garbage
collector methods appear as hot when doing performance sampling of our
application. I haven't investigated though. I suspect there are
improvements to be had in that code...
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list