From 126462bb0b13c7778880ef5580ae20a88991be35 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 21 Oct 2009 15:48:11 +0000 Subject: [PATCH] Added stats handler to track performance effects of new GLBeginEndAdapter usage --- examples/osgparticle/osgparticle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/osgparticle/osgparticle.cpp b/examples/osgparticle/osgparticle.cpp index cb0e71571..e7ca2532c 100644 --- a/examples/osgparticle/osgparticle.cpp +++ b/examples/osgparticle/osgparticle.cpp @@ -17,6 +17,7 @@ */ #include +#include #include #include @@ -368,6 +369,9 @@ int main(int, char **) osg::Group *root = new osg::Group; build_world(root); + // add the stats handler + viewer.addEventHandler(new osgViewer::StatsHandler); + // add a viewport to the viewer and attach the scene graph. viewer.setSceneData(root);