Hi Kim,
I don't think that there is "a library".
Personally I think there are two options.
1. See if your driver can do it via vsync. Newer Nvidia drivers for
instance allow you to sync to half of the refresh rate.
2. Lock it yourself by issuing the viewer.frame() in the right moment.
In order to do this you'll need some kind of micro sleep to wait a
potentially very short time.
But beware: Locking the frame rate to something else than the output's
sync rate, you might get artifacts
cheers
Sebastian
Hi,
i m wondering is it possible to lock(maintatin) the frame rate?
i mean that
we can see the frame rate on the viewer if we press 's'.
then i can see the frame rate is around 60 but
i would like to lock the frame rate aroud 30
is there some osg library for that?
Thanks in advance
Cheers,
Kim
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54294#54294
_______________________________________________
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