Hello Ákos,
> I see... I tried to use the osgViewer::Viewer class in my application as
> well.
> how can I display my scene graph so that it is idle when there's nothing
> to do?
If you turn on "Wait for vsync" in your video drivers, it will limit
the frame rate of your app to the refresh rate you are running at
(60HZ, 72Hz, whatever).
But even then, in some graphics drivers the wait is implemented as a
"busy wait" which will give the appearance that your app is maxing out
CPU time anyways. This is just an appearance though. If you run
another app you will see that your osgviewer app will still run at
your monitor's refresh rate, but it will relinquish CPU time to the
other app so that it runs at normal speed (as long as your osgviewer
app is not CPU limited in the first place, in which case the 100% CPU
usage will be from actual work, not the "busy wait").
"Real-time Rendering" by Möller and Haines is a great reference on
this and other graphics topics, by the way.
Good luck,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org