<div dir="ltr">The answer to this would fill a thick book :-) It fundamentally ties into the trade off of flexibility versus performance, as well as our business model since some of our customers pay us to address this question and tune their applications.<br>
<br>Here are some places to start:<br>+ Set vtkMapper's Static flag<br>+ Play with vtkMapper's immediate mode rendering flag<br><br>If you are more ambitious:<br>+ Write your own custom mapper<br>+ Lots of time is spent resetting the camera clipping planes every render, there are many ways to limit this.<br>
<br>There is a well known problem in VTK when thousands or tens of thousands of actors are rendered. Again, tricks like using glyphs or custom mappers help. Good luck!<br><br>W<br><br><br><br><div class="gmail_quote">2008/8/7 shiva sitamraju <span dir="ltr"><<a href="mailto:shivaenigma@gmail.com">shivaenigma@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi all,<br>What I want is once my polydata is rendered once, I want it to be rotated as fast as opengl does a rotate.<br>
So to check this, I wrote some code in OpenGLPolyDataMapper to keep on rotating the display list using glRotatef() and found that it was much faster than my renderWindow->render().<br>
I understand that renderWindow->render() does lots of checks and the request is forwarded down the pipeline but all this is not necessary for me because I know that <br>my polydata and actor  have not changed.<br><br>
So If someone can point me to the portion of code where renderWindow->render() takes lots of time, I can somehow flag it or override the method when i know that  my scene parameters (actor, polydata) have not changed and I can just do a fast rotate.<br>

<br>Thanks<br>-Shiva<br><br><br><br><br><br><br></div>
<br>_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com">http://www.kitware.com</a><br>518-371-3971 (phone and fax)<br>
</div>