The comments for DatabasePager::setTargetFrameRate explain that this variable is not used directly and how it should be used. As seen below it appears it is intentionally not used.
"Typically one would set this to the value refresh rate of your display system i.e. 60Hz. Default value is 100. Usage notes. The TargetFrameRate and the MinimumTimeAvailableForGLCompileAndDeletePerFrame parameters are not directly used by DatabasePager <http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01126.html>, but are should be used as a guide for how long to set aside per frame for compiling and deleting OpenGL objects - ie. the value to use when calling DatabasePager::compileGLObjectgs(state,availableTime,). The longer amount of time to set aside cthe faster databases will be paged in but with increased chance of frame drops, the lower the amount of time the set aside the slower databases will paged it but with better chance of avoid any frame drops. The default values are chosen to achieve the later when running on a modern mid to high end PC. The way to compute the amount of available time use a scheme such as : availableTime = maximum(1.0/targetFrameRate - timeTakenDuringUpdateCullAndDraw, minimumTimeAvailableForGLCompileAndDeletePerFrame)." Mike Robert Osfield wrote: > On Nov 7, 2007 2:42 PM, Paul Martz <[EMAIL PROTECTED]> wrote: > >> Can you point me to code that actually uses this variable? >> > > Just did a search and couldn't spot anything :-) > > Perhaps osgProducer used it. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Michael Henheffer - Software Developer Core3D/Easy View CARIS 115 Waggoners Lane, Fredericton, New Brunswick, Canada, E3B 2L4 Tel: +1-506-458-8533 Fax: +1-506-459-3849 _________________________________________________________________________ New Viewer for 2D and 3D Data Download your free copy of CARIS Easy View today! www.caris.com/easyview _________________________________________________________________________ This email and any files transmitted with it are confidential and intended only for the addressee(s). If you are not the intended recipient(s) please notify us by email reply. You should not use, disclose, distribute or copy this communication if received in error. Any views or opinions expressed in this email are solely those of the author and do not necessarily represent those of the company. No binding contract will result from this email until such time as a written document is signed on behalf of the company. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org