On Tue, Apr 20, 2010 at 1:01 PM, Robert Osfield <[email protected]>wrote:

> 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?
>
> I know "Sorted" is not great; I tried to come up with a descriptive name
that would fit in the existing table. The statistic is the total number of
drawables found in all the _renderLeafList members of the render bins.
_renderLeafList is also referred to as the "fine grain ordering;" it
contains render leaves that are sorted by distance or by explicit traversal
order. I'm trying to expose a statistic that gives an idea of how many
distance-sorted drawables are in the visible scene.

If you're willing to make the table bigger, "ordered drawables" would be
accurate, though not too meaningful to non-experts. "Sorted drawables" gets
the point across too.

Tim

> 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
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to