[vtk-developers] Performance slow down

Francois Bertel francois.bertel at kitware.com
Thu Jul 24 12:37:55 EDT 2008


Hi,

I know. I'm working on it.

Initially, the default painter chain was ClipPlanesPainter->DisplayListPainter.

I changed it to DisplayListPainter->ClipPlanesPainter because I wanted
to be able to have sub-mappers in a global mapper, the global mapper
having its own display list, and wanted to have a nested display lists calls.

This change broke some tests using clip planes because when the actor
transform was changed, the display list was not rebuild based
on the actor change and the display list painter was skipping the call
to its delegate painter (in this case the clipPlanesPainter).

So I added this new condition for the display list painter to be rebuild.

it sounds that in your case the actor is changing at every frame, so
the display list is actually rebuilt at every frame.

I'm considering reverting back my initial change to have again the
ClipPlanesPainter before the DisplayListPainter and change my
global mapper accordingly.

I let you know when I'm done.


On Thu, Jul 24, 2008 at 12:22 PM, Mathieu Coursolle
<mcoursolle at rogue-research.com> wrote:
> Hi,
>
> I've track down the source of the problem to this change:
>
> http://public.kitware.com/cgi-bin/viewcvs.cgi/Rendering/vtkOpenGLDisplayListPainter.cxx?r1=1.7&r2=1.8
>
> For some reason, if I undo this single change, it is rendering as fast as
> before.
>
> Anybody knows what the problem might be?
>
> Thanks!
>
> Mathieu
>
>
>
> On 24-Jul-08, at 11:07 AM, Mathieu Coursolle wrote:
>
>> Hi vtk-dev,
>>
>> I am developing a Cocoa application on Mac OSX 10.5 based on VTK.
>> I usually update from CVS once in a while to have the recent fixes
>> and features.
>>
>> I updated yesterday and rendering a vtkPolyData is now very slow.
>> It use to be quite fast with my 2 weeks old version.
>>
>> I used the Shark tool to check in which part of the code it was spending
>> all
>> this time, and it resulted in the OpenGL API.
>>
>> Any idea of which last days commit might have cause this?
>>
>> Thanks!
>>
>> Mathieu
>> _______________________________________________
>> vtk-developers mailing list
>> vtk-developers at vtk.org
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>
>



-- 
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
 | Clifton Park NY 12065, USA



More information about the vtk-developers mailing list