At worst you could use sleep

As to Vertical retrace you have the OSG source code just look at what V key
press  calls

Personally to me I think it perfectly reasonable to set this myself, the
less forced defaults the better for me, but thats my preference

And there are many graphics cards that still do not allow you to set the V
sync through code only through the driver interface



Best Regards

Gordon

__________________________________________________________

Gordon Tomlinson
Email  : gordon.tomlinson @ overwatch.com
YIM/AIM: Gordon3dBrit
MSN IM : Gordon3dBrit @ 3dSceneGraph.com


__________________________________________________________




"Self defence is not a function of learning tricks
but is a function of how quickly and intensely one
can arouse one's instinct for survival"
- Master Tambo Tetsura




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of David
Johansson
Sent: Friday, October 13, 2006 11:32 AM
To: osg users
Subject: Re: [osg-users] Reduce cpu load.


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/


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

Reply via email to