You may also want to verify that the environment variable __GL_SYNC_TO_VBLANK 
is not set.  For certain graphics cards/drivers, this variable allows you to 
control the frame rate.  If this variable is set to any non-zero value, the 
application settings will be overridden, and the frame rate will be locked to 
the monitor refresh rate. 

http://http.download.nvidia.com/XFree86/Linux-x86/1.0-8174/README/32bit_html/appendix-e.html


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Ulrich Hertlein
Sent: Monday, July 13, 2009 11:02 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] vsync false doesn't change frame rate

On 13/7/09 4:42 PM, Jean-Sébastien Guay wrote:
> Hi Bob,
>
>> Hi all, I’m trying to get frame rates above 60Hz, and when I set the
>> traits->vsync = false it has no effect. I’m getting the default camera
>> created by the View in the Viewer and re-setting its traits. Is that
>> not the right approach?
>
> Check your display settings (in your OS - nvidia control panel or
> whatever), they might be forcing the vsync on.

This reminds me of something that I asked a while ago:
as far as I can tell there is no way in OSG to modify vsync after the context 
has been 
established.  At least the OS X code only checks the vsync trait on setup.

I have a preliminary patch that adds this on OS X (key binding 'v' and code to 
toggle 
vsync at runtime) but it's a bit raw.  Is it worth polishing this for 
submission?

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

Reply via email to