|
I often get asked how fast the translation is. The translation is fast. Essentially, it is just memory copies to Performer structures in shared memory. If translation takes a while, then rendering will also be slow (too much geometry). Keep in mind, however, that vtkActorToPF calls Update() on the actor. This may cause portions of the pipeline to re-execute before the translation. That may take some time. I've added some instrumentation to the newest release. If you enable the "verbose" feature, the translator will tell you how much time is spent doing the Update() and how much time is spent translating. Also keep in mind that you only need to translate when there is new vtk geometry. If you use vtkActorToPFTranslator, this is handled automatically. If you are just using the vtkActorToPF function, you do not need to call it each frame. Only call it when you change something in the vtk pipeline. |