Hi Louis,

On Mon, Nov 22, 2010 at 3:21 PM, Louis Ixo <[email protected]> wrote:
> Just a last question: In osg is there some function that I can use to switch 
> on vsync?
> I'm asking that because my driver sets vsync off but i.e. when I play 
> Flightgear the fps is limited to 60, so probably it activate vsync somewhere.

The OSG's osg::GraphicsContext::Traits data structure that is passed
to the osgViewer GraphicsWindow subsystem has a bool vsync that
defaults to true.  Under Windows and OSX there is support for enabling
vsync, but alas there isn't any such feature under GLX so Linux etc.
have to rely upon the driver to do it.

Applications have limit the frame rate themselves by gating the main
frame loop but this won't by sync'd to the vertical refresh unless
vsync is enabled in the driver.   It's likely that Flighgear is simply
holding back the framerate to 60 hrz.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to