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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user