Package com.badlogic.gdx.graphics
Class FPSLogger
java.lang.Object
com.badlogic.gdx.graphics.FPSLogger
A simple helper class to log the frames per seconds achieved. Just invoke the
log()
method in your rendering method.
The output will be logged once per second.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FPSLogger
public FPSLogger() -
FPSLogger
public FPSLogger(int bound) - Parameters:
bound
- only logs when they frames per second are less than the bound
-
-
Method Details
-
setBound
public void setBound(int bound) -
log
public void log()Logs the current frames per second to the console.
-