Added StatsHandler to check performance

This commit is contained in:
Robert Osfield
2016-08-24 20:09:52 +01:00
parent 3d0f6d5d78
commit a87a6f0851

View File

@@ -17,6 +17,7 @@
*/
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osg/Group>
#include <osg/Geode>
@@ -714,6 +715,9 @@ int main(int argc, char **argv)
osg::Group *root = new osg::Group;
build_world(root, testCase, useOverlay, technique);
viewer.addEventHandler(new osgViewer::StatsHandler);
// add a viewport to the viewer and attach the scene graph.
viewer.setSceneData(root);