Hello 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.

yes, it is meant to be used with time values.

> Any clue?

hm, the code behind it looks pretty straight forward, so this is a bit 
puzzling. Is this with 2.0 ? What version of the boost libraries are you 
using (I switched the statistics formatting to boost::format a while ago)?

        Cheers,
                Carsten

------------------------------------------------------------------------------
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