[osg-users] Framerate vs stats?

Wojciech Lewandowski lewandowski at ai.com.pl
Fri Feb 15 03:57:39 PST 2008


Hi Robert,

We noticed another issue. When statistics bars are on - framerate slowly 
degrades. This happens with osgviewer dumptruck.osg for example. When stats 
are on draw time slowly grows and framerate starts to decrease.

Tested with latest svn (2.3.4), windows xp & vista, OSG built with VS 2008.

Regards,
Wojtek


----- Original Message ----- 
From: "Robert Osfield" <robert.osfield at gmail.com>
To: "OpenSceneGraph Users" <osg-users at lists.openscenegraph.org>
Sent: Friday, February 15, 2008 11:57 AM
Subject: Re: [osg-users] Framerate vs stats?


Hi J-S,

On screen stats adds extra compute and GPU load to the rendering of
the frame, so one would expect it reduce rather than enhance frame
rate.  The fact that you have an instance where the reverse happens
suggest something odd happening with the OpenGL driver - something
like is given the boot when the OpenGL data that the OSG send changes
slightly.  Try other things to jolt the driver by toggle texturing or
lighting to see what happens.

Robert.

On Mon, Feb 4, 2008 at 3:31 PM, Jean-Sébastien Guay
<jean-sebastien.guay at cm-labs.com> wrote:
> Hello all,
>
>  I'm seeing something peculiar in one of our apps using OSG 2.2, and I
>  was wondering if someone else had seen something like this or would have
>  an idea what would cause it.
>
>  The app starts and seems sluggish. Pressing 's' once shows it's running
>  at around 15-20 FPS. But then, if I press 's' a second time, the
>  framerate shoots up to >75 FPS (capped by my refresh rate) and the app
>  is suddenly very smooth. And it stays like that too (I can hide the
>  stats again or whatever, it has no significant effect on the frame rate).
>
>  So, what could cause this? Why would showing the detailed stats screen
>  have that effect? I've seen cases where showing detailed stats _slowed_
>  the frame rate, but this is the first time it makes it faster!
>
>  Thanks in advance,
>
>  J-S
>
>  --
>  ______________________________________________________
>  Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com
>                                http://www.cm-labs.com/
>                         http://whitestar02.webhop.org/
>
>  _______________________________________________
>  osg-users mailing list
>  osg-users at lists.openscenegraph.org
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list