Thank you Robert.

2 more questions though :)

It must be possible to set vertical sync at runtime, since you do it
by pressing 'v' when using osg::Viewer. I don't feel that it's a good
solution to ask the user to set this manually.
And second, do you know if there is a function in Windows API, and/or
Linux that will "idle" the cpu for a number of milliseconds. I would
really prefer to do this manually.

Thanks for all the help!

David

On 10/13/06, Robert Osfield <[EMAIL PROTECTED]> wrote:
On 10/13/06, David Johansson <[EMAIL PROTECTED]> wrote:
> Currently linux (ubuntu), but i am also developing under Windows XP-64
>

Under linux with the NVidia drivers I enable vs sync via the env var:

 export __GL_SYNC_TO_VBLANK = 1

I place this in my .bashrc

You can also using snvidia-settings application to set the vsync options.

Under windows there are the display setting dialogs.

Robert.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to