From a87a6f08519826ee3a63c1aca34cb16a2e1eed83 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 24 Aug 2016 20:09:52 +0100 Subject: [PATCH] Added StatsHandler to check performance --- examples/osgspheresegment/osgspheresegment.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/osgspheresegment/osgspheresegment.cpp b/examples/osgspheresegment/osgspheresegment.cpp index d61000f15..b818d8b11 100644 --- a/examples/osgspheresegment/osgspheresegment.cpp +++ b/examples/osgspheresegment/osgspheresegment.cpp @@ -17,6 +17,7 @@ */ #include +#include #include #include @@ -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);