Gordon,
At worst you could use sleep
:) guessing there must be a better way then..
As to Vertical retrace you have the OSG source code just look at what V key
press  calls
Ofcourse i have looked, however, i have never really used the "viewer"
& osg's event handeling system. Since there are many lines of code,
and im currently working in gedit it takes alot of time tracking down
where the 'v' callback is set in the viewer and i simply didn't have
the time for it yet, sorry.

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

Asuming that you mean setting V-sync:
As a user, i think most would prefer to set it at run-time (doesn't
have to be default). Not by changing driver-settings. I still need to
be able to set some kind of standard framerate as keyb. inputs etc.
goes way to fast on fast computers..

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

Okay, it seems to work nice on my machine. Also, most (all?) games
using openGL can set V-Sync at runtime..
I'll get to tracing that 'v' key as soon as i have time, thanks for the input!

David

On 10/13/06, Gordon Tomlinson <[EMAIL PROTECTED]> wrote:
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/

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

Reply via email to