[vtkusers] performance problems with VTK java wrappers

Jeff Lee jeff at cdnorthamerica.com
Thu Jul 1 07:52:34 EDT 2004


Hi Rajesh,
Paraview is probably not using displaylists.  You could try
mapper.SetGlobalImmediateModeRendering(1);
which will turn off the use of displaylists.  There is otherwise no 
fundamental reason they should differ in performance.
-Jeff

Rajesh Bhairampally wrote:

> I am stuck with performance problems with vtk (java wrappers). When i 
> pull the same data set in paraview (with no decimation), it is at 
> least 100 times faster than my little java application. I really 
> appreciate if someone suggests me what i should do to improve 
> performance? BTW, the data set has more than 10 mil grid cells... may 
> be there is some vtk method that can handle large data sets 
> efficiently....(?) any help is greatly appreciated
>  
> here is the vtk part of my application.
>  
>     private vtkPanel renWin = new vtkPanel();
>     vtkDataSetReader reader = new vtkDataSetReader();
>     vtkDataSetMapper mapper = new vtkDataSetMapper();
>     vtkActor actor = new vtkActor();           
>      
>             reader.SetFileName (file.getAbsolutePath());
>             mapper.SetInput(reader.GetOutput());
>             actor.SetMapper(mapper);
>             renWin.GetRenderer().AddActor(actor);
>             VtkPanelUtil.setSize(renWin, 800, 800);
>             jPanel3.setLayout(new BorderLayout());           
>             jPanel3.add(renWin, BorderLayout.CENTER);
>  
>  
> thanks,
> rajesh
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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://www.vtk.org/mailman/listinfo/vtkusers
>  
>




More information about the vtkusers mailing list