Print stats

Some demos have like stats printed in the bottom of the game window, saying how much vertices and triangles (or points) does the scene have.



As I can assume, this stats updates on each camera move.



How do I add this to my project?

You have to enable the stats with:

display.getRenderer().enableStatistics(true);



And you can get the stats-texts with:

display.getRenderer().getStatistics(StringBuffer);


JackNeil said:

You have to enable the stats with:
display.getRenderer().enableStatistics(true);

And you can get the stats-texts with:
display.getRenderer().getStatistics(StringBuffer);


There are no such methods in display.getRenderer()!

How do I print them on the window? And maybe add something else like consumed memory?