Use a performance meter with JOGL backend

From JReality Wiki
Revision as of 10:25, 6 August 2012 by Gunn (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Source file: PerformanceMeterExample


Run as Java webstart


[Aug. 5 2012: This is a new tutorial and the links may not be correct til the next update of the jReality distribution, which happens approximately monthly. You can however run the tutorial by checking out the jReality source distribution from svn. See http://www3.math.tu-berlin.de/jreality/mediawiki/index.php/Eclipse_set-up_tutorial -gunn]


This tutorial shows how to get some performance statistics when using the JOGL backend. The plugin in question is de.jreality.plugin.basic.InfoOverlayPlugin.


Not shown here: to disable display of the statistics overlay, use the method:

 
    InfoOverlayPlugin iop = new InfoOverlayPlugin();
    ...
    iop.getInfoOverlay().setVisible(false);


Previous: Mix JOGL graphics with 2D Java graphics Developer Tutorial: Contents Next: Developer Tutorial