Hi TIm,

I've merged and checked in your changes as is. The grey background
behind the onscreen stats no longer encompasses all the text so I'll
fix this.  The "Sorted" field is a bit uninformative a label, even I'm
not sure what it is and will need to dig into the code to see.
Suggestions for a better name?

Robert.

On Thu, Apr 1, 2010 at 10:39 AM, Tim Moore <[email protected]> wrote:
> Hi,
> I noticed that the "Materials" statistic in the camera scene stats display
> seemed to be identical to the number of drawables. In fact, it displays the
> nummat member of osgUtil::Statistics, but that variable has nothing to do
> with materials. nummat tracks the number of matrices associated with
> Drawable objects in a RenderBin; as I understand it, Drawables pretty much
> always have a model-view matrix tied to them in RenderBins, so this
> statistic doesn't seem very useful. So, I added statistics for the number of
> StateGraph objects in RenderBins and also for the number of Drawables in the
> "fine grain ordering" of RenderBins. The latter corresponds to the number of
> Drawables in the scene that are sorted by some criteria other than graphics
> state; usually that is distance for semi-transparent objects, though it
> could be traversal order. These two statistics give an idea of the number of
> graphic state changes happening in a visible scene: each StateGraph implies
> a state change, and there could be a change for each sorted object too. You
> can also subtract the number of sorted Drawables from the total number of
> Drawables and get an idea of how many Drawables are being drawn for each
> StateGraph.
>
> Tim
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to