APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics

public Class FPSLogger

extends Object
Class Inheritance
Imports
com.badlogic.gdx.Gdx, com.badlogic.gdx.utils.TimeUtils

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.
Author
mzechner

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv long

Constructor Summary

AccessConstructor and Description
public
public
FPSLogger(int
only logs when they frames per second are less than the bound
bound
)

Method Summary

Modifier and TypeMethod and Description
public void
log()

Logs the current frames per second to the console.

public void
setBound(int bound)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundback to summary
pack-priv int bound
startTimeback to summary
pack-priv long startTime

Constructor Detail

FPSLoggerback to summary
public FPSLogger()
FPSLoggerback to summary
public FPSLogger(int bound)
Parameters
bound:int

only logs when they frames per second are less than the bound

Method Detail

logback to summary
public void log()

Logs the current frames per second to the console.

setBoundback to summary
public void setBound(int bound)