[vtkusers] Render Speed....

Michael Scarpa m.scarpa at uva.nl
Wed Mar 14 04:46:21 EDT 2007


Hi.

I'm not sure I understand your situation correctly, but I assume that  
you're not referring to the overhead caused by actually *generating*  
the vtkImageData (e.g. reading a file).  So assuming that you have  
all your data sets loaded (i.e. you have a bunch of vtkImageData  
objects, or filters that generate vtkImageData output *and* which are  
*all* updated), I guess you might speed things up by creating a  
separate mapper/actor set for every data set separately, and simply  
switching the visibility of the various actors on/off, according to  
your needs.  After all, the mappers do have to process the data  
before it can actually be rendered, so this way you can have this  
processing happen all at once beforehand.  Just make sure that every  
actor is rendered once before you turn it's visibility off (or,  
alternatively, make sure the mappers are updated).

Please let me know if this was any help.

With kind regards,

Michael


On 9 Mar, 2007, at 23:50, Beau Sapach wrote:

> Hello everyone,
>
>
>
> I’ve posted a number of questions recently but got no response.  I  
> do realize however that most of my recent troubles have revolved  
> around multithreading, not VTK.
>
>
>
> I hope this question is fairly straight forward.  Every time I  
> change the vtkImageData that my vtkImageActor is using, the call to  
> Render() takes a bit of time.  But once the image is displayed, I  
> can pan, zoom and rotate very smoothly and in real-time.  I’m  
> assuming that the interactor calls Render() somewhere along the  
> line for every shift in mouse position.  How do I make my calls to  
> Render() that fast?  I suspect it has to do with getting my  
> vtkImageData out of system memory and into the frame buffer, once  
> that’s accomplished calls to Render() are fast.  So every time I  
> switch vtkImageData on my vtkImageActor that new data has to be  
> sent to the graphics card correct?  Is there a way of sending  
> multiple images into the graphics card in one fell swoop and THEN  
> changing which one is displayed?
>
>
>
> Beau
>
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ 
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list