<div dir="ltr"><div>Hi Chris,</div><div>the calls you're looking for:</div><div><br></div><div>#include <osgViewer/<wbr>ViewerEventHandlers><br></div><div> // add the stats handler</div><div> viewer.addEventHandler(new osgViewer::StatsHandler);</div><div class="gmail_extra"><br></div><div class="gmail_extra">This comes form the osgviewer source (applications/osgviewer/osgviewer.cpp)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Laurens.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 25, 2018 at 3:53 PM, Chris Baker <span dir="ltr"><<a href="mailto:colby@chimail.net" target="_blank">colby@chimail.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I remember there being a simple call to enable the 's' key to display on-screen stats in OSG, but for the life of me, I can't remember how to enable that. I thought it was a trivial call on the viewer, something like `enableStats`, which resulted in the 's' key displaying some useful statistics about the scene rendering.<br>
<br>
Thanks in advance for the help in locating that useful feature!<br>
<br>
Cheers,<br>
Chris<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=73506#73506" rel="noreferrer" target="_blank">http://forum.openscenegraph.or<wbr>g/viewtopic.php?p=73506#73506</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</blockquote></div><br></div></div>