On Tue, May 11, 2010 at 7:35 AM, Robert Osfield <[email protected]>wrote:

> Hi Glenn,
>
> On Thu, May 6, 2010 at 2:31 PM, Glenn Waldron <[email protected]> wrote:
> > I have a single vertex array (in a VBO) that is shared by multiple
> Geometry
> > objects. The statistics are showing my Vertex count to be (vbo size)*(#
> of
> > geometries). Is this the expected behavior? I was expecting the vertex
> count
> > to be either a) the size of the single VBO, or b) the number of verts
> > actually "traversed" by primitives. Thanks.
>
> The stats code will be just traversing the scene graph and updating
> the count every time it encounters a geometry with a vertex array on
> it.   Getting the stats could to update on unique vertex arrays or or
> traversed primitives would be CPU intensive to compute so something
> you'd want to avoid on something done every frame.  You could
> implement this yourself with your own stats code.
>
> Robert.


That makes sense. I don't really need the "correct" stats, I just wanted to
confirm that I was seeing what I thought I was seeing and it wasn't a bug on
my end. Thanks Robert.


Glenn Waldron : Pelican Mapping : +1.703.652.4791
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to