Are you using immediate mode rendering? Call ImmediateModeRenderingOff() on all the mappers to ensure that display lists are used. If display list are not used, then I am not surprised VTK 5.4 is slower than VTK 4.4 dramatically since there were changes in rendering pipeline to make it more customizable, like addition of painters, which affect rendering performance due to additional virtual calls.<div>
<br></div><div>Utkarsh<br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 9:51 AM, Affolter Martin <span dir="ltr"><<a href="mailto:martin.affolter@ntb.ch">martin.affolter@ntb.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for your replies. It seems that I am not the only one experiencing a performance drop in VTK 5.4.2 compared to VTK 4.4. As I mentioned before, we use VTK to visualize 3d-models in our CAD-Application. I have compared the time to visualize a certain model with 4.4 vs. 5.4.2. Except for some replaced deprecated methods, our code remained the same, so the differences must come from VTK. There is also a remarkable difference when interacting with the window. Unfortunately I don't have any values (fps) to present at this moment.<br>
<br>
It looks like we're going to stick with 4.4 for now. Comments are welcome.<br>
<br>
Here are the details:<br>
<br>
1. Time to visualize model (includes creating actors and rendering the scene) (h:m:s)<br>
-------------------------------------------------------------------------------------<br>
VTK 4.4 release (measured 3 times):<br>
0:0:6.266<br>
0:0:6.922<br>
0:0:7.032<br>
<br>
VTK 5.4.2 release (measured 4 times):<br>
0:0:22.516<br>
0:0:29.438<br>
0:0:26.110<br>
0:0:27.032<br>
<br>
<br>
2. Visualized model (screenshot)<br>
--------------------------------<br>
Entities Faces Edges Vertices<br>
1 20 51 34<br>
2 137 370 240<br>
3 211 523 321<br>
4 25 66 44<br>
5 104 299 197<br>
6 104 299 197<br>
7 86 237 156<br>
8 26 69 46<br>
9 246 680 448<br>
10 81 231 154<br>
11 39 111 74<br>
12 284 761 486<br>
13 84 243 162<br>
----------------------------------<br>
1447 3940 2559<br>
----------------------------------<br>
Total number of Actors 7946<br>
==================================<br>
<br>
<br>
3. Used VTK-Classes<br>
-------------------<br>
Edges: vtkActor, vtkPoints, vtkPolyData, vtkPolyDataMapper<br>
Faces(Meshes): vtkActor, vtkPoints, vtkPolyData, vtkCellArray, vtkPolyDataNormals, vtkPolyDataMapper<br>
Vertices: vtkActor, vtkPoints, vtkPolyData, vtkVertex, vtkPolyDataMapper<br>
<br>
<br>
4. Used Hardware<br>
----------------<br>
Intel Pentium D(ual core) 3.2GHz<br>
2GB Ram<br>
ATI Radeon X1300 Series<br>
<br>
Regards<br>
Martin<br>
<br>
<br>
---<br>
<br>
Original Message:<br>
<br>
Dear VTKUsers<br>
<br>
I've been looking into the vtkusers archive for a while now, and it helped me solve my vtk-problems in most cases. We use VTK in a CAD Application and decided to move from version 4.4 to the latest release, which is 5.4.2 at this time. So I downloaded the sources, made a VS2008 solution with Cmake and built the libs and dlls. Besides replacing some deprecated methods I did not have to change anything in our code. No compiler-warnings, no errors (of course).<br>
<br>
When I tested version 5.4.2 against 4.4 I found out, that 5.4.2 takes about 3-4 times longer to visualize a 3d-model of some robot-arm than version 4.4 did. The rendering while interacting is also very, very slow. Can anybody confirm such a performance drop? If so, then I think we might stick to v4.4 a little longer, if not, then I'll have to figure out what went wrong in my tests.<br>
<br>
Thanks<br>
<font color="#888888">Martin</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>