Time for action – checking vital stats

The com.jme3.app.StatsView UI element provides various counts, which it gathers using com.jme3.renderer.Statistics:

  1. Run the BasicGame template once more.
  2. Look at the statistics on the bottom left-hand side; they display the object counts for the various elements.
  3. Have a look at the bottom number in the HUD. It displays the frames per second (FPS).

To interpret the numbers correctly, consider that the 14 lines of text themselves already count as 14 objects with 914 vertices.

What just happened?

The StatsView window displays internal info about Textures, FrameBuffers (rendering surfaces), and Shaders (effects). The three values tell you how many are in memory (M), how many were used in the last frame (F), and how ...

Get jMonkeyEngine 3.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.