Hi Pablo,

Pablo Carneiro Elias wrote:
> Hi all... I have a chunk of code used to display FPS statistics:
> 
> sf->addElement( OSG::RenderAction::statDrawTime,         "FPS: %r" );
> 
> It works fine under linux, but under window it gets crazy when big FPS
> values occurs.  If I navigate to some part of the scene with no object, the
> FPS time gets too high under due to frustum culling. Under linux the high
> FPS value is shown normaly, but under windows it seems to overflow and a
> strange value is shown, something like
> 10000000000000000000000000000000000000000000000000000000000000000000 (a lot
> of 0s).
> 
> I've found out that the %r format is an OpenSG custom format to show time
> values, so it should work with statDrawTime.
> 
> Any clue?

Can you try using the regular %f format? The only thing I can think of 
is that the time goes to 0, and then the division by time that %r does 
goes to infinity.

If that's the case we need to look into the timer granularity, maybe we 
need to switch to a different timer to avoid this problem.

Yours

        Dirk

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to