[osg-users] On-screen Stats Display

Voerman, L. l.voerman at rug.nl
Wed Apr 25 07:07:41 PDT 2018


Hi Chris,
the calls you're looking for:

#include <osgViewer/ViewerEventHandlers>
    // add the stats handler
    viewer.addEventHandler(new osgViewer::StatsHandler);

This comes form the osgviewer source (applications/osgviewer/osgviewer.cpp)

Laurens.

On Wed, Apr 25, 2018 at 3:53 PM, Chris Baker <colby at chimail.net> wrote:

> Hi,
>
> 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.
>
> Thanks in advance for the help in locating that useful feature!
>
> Cheers,
> Chris
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73506#73506
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180425/8d58209f/attachment.html>


More information about the osg-users mailing list