Hi Zach, Adjusting LOD ranges etc w.r.t frame time left in the current frame is not possible due to the architecture of both the OSG and hardware. The best you can do is monitor the CPU and GPU frame time for the previous frame and then adjust the LOD scaling etc for the new frame. If you do this in a conservative way then you should be able to minimize the chance of breaking frame.
With the new osgViewer library I'd like to get on to adding better support for frame managment, but it won't be something that'll be tackled right away. I'll keep in mind the need for performance measurement and customizable adjustment. Robert. On 12/11/06, Zach Deedler <[EMAIL PROTECTED]> wrote:
There are many ways to adjust properties of an application to maintain a desired frame-rate: 1) Adjusting LOD range 2) Adjusting far-clip 3) Node prioritization 4) Scene graph optimizations REQUEST I'd like to see some example programs that look at the frame time left over, and adjust 1 or more of the properties above to try to maintain a desired frame rate. Maybe even make it an environment variable option for osgviewer? ADJUST_FOR_FRAME_RATE=LOD_RANGE ADJUST_FOR_FRAME_RATE=FAR_CLIP etc. If I get a chance I'll start on implementing at least one of them. Zach _______________________________________________ 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/
