[vtkusers] tutorial, step1, Cone runs like a snail on OSX 10.5

Sean McBride sean at rogue-research.com
Thu Mar 12 20:02:53 EDT 2009

On 3/12/09 7:50 PM, Francois Bertel said:

>If your display has a vertical refresh rate of 60Hz and the vertical
>blank sync is set on your system,
>each rendering of a frame waits for the next vertical blank to swap
>the  front and back buffer.
>360 frames/60Hz=6s.
>I don't know how you can switch that off as a end-user on Mac.


Good thinking.  VBL sync is always on in vtkCocoaRenderWindow.  This is
the responsible snippit:

 [context setValues:&one forParameter:NSOpenGLCPSwapInterval];

Darren, try commenting that line out and rebuilding VTK.  See if
François' theory is correct.

Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada

More information about the vtkusers mailing list