From Roland Smeenk, "this submission adds a "Fast Drawable" line to the camera scene statistics.

It shows the total number of sorted and unsorted drawables that use the fastpath for rendering."
This commit is contained in:
Robert Osfield
2010-09-09 10:03:58 +00:00
parent 77c35eabde
commit cbc43841e1
5 changed files with 25 additions and 2 deletions

View File

@@ -102,6 +102,7 @@ class OSGUTIL_EXPORT Statistics : public osg::PrimitiveFunctor
virtual void end();
void addDrawable() { numDrawables++;}
void addFastDrawable() { numFastDrawables++;}
void addMatrix() { nummat++;}
void addLight(int np) { nlights+=np;}
void addImpostor(int np) { nimpostor+= np; }
@@ -126,6 +127,7 @@ class OSGUTIL_EXPORT Statistics : public osg::PrimitiveFunctor
PrimitiveCountMap::iterator GetPrimitivesEnd() { return _primitives_count.end(); }
int numDrawables, nummat, nbins, numStateGraphs;
int numFastDrawables;
int nlights;
int depth; // depth into bins - eg 1.1,1.2,1.3 etc
int _binNo;