Hello Sajjadul,

Sajjadul Islam wrote:
> Hello,
> 
> Is there any built-in function to access the frame per second while 
> during animating
> an object?

no, there is no such functionality, because OpenSG does not control the 
render loop.
However, ...

> If not, then how to make one through the scene manager interface and 
> print that to the
> window title?

... you can use a SimpleStatisticsForeground or 
GraphicStatisticsForeground to display various statistics OpenSG 
collects. Among them is the time needed to draw all objects, which can 
be used as an approximation to the reciprocal of fps. Please take a look 
at testStatisticsRender.cpp 
Source/System/Statistics/Source/System/Statistics/testStatisticsGraphicsRender.cpp
 
which show how to set up these foregrounds.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to