Hello Sebastian,

On 05/19/2011 09:40 AM, Sebastian Till wrote:
> I am using OpenSG 1.8 and tried to print some statistics of the rendering 
> (e.g. fps, nodes drawn, etc.) to a file. Therefor I created a 
> SimpleStatisticsForeground added its StatCollector to a render action and 
> even succeeded in displaying it on screen. However, reading individual 
> entries of the StatCollector didn't work. For most of the values I just 
> received zeros.
> What did I wrong?

hmm, sorry, can't say from your description...

> Are these values cleared at some point during OpenSG rendering pipeline?

yes, IIRC they are cleared at the beginning of the frame.

> If so, when is the right point to retrieve these statistics?

the test Source/System/Statistics/testStatisticsModel.cpp fetches them 
after rendering. Perhaps you can compare your code with that test and 
spot a difference.

        Cheers,
                Carsten

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to