public class FPS extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER
This logger will log the FPS.
|
| Constructor and Description |
|---|
FPS()
Initializes everything with 0.
|
| Modifier and Type | Method and Description |
|---|---|
void |
display()
Dispays the FPS (Logs it)
and calculates average fps
|
int |
get()
Returns the fps of the last second.
|
float |
getAverage()
Returns the fps average during runtime
|
void |
passed(double passed)
Adds time passed
|
void |
rendered()
Should get invoked on every frame render.
|
public void passed(double passed)
passed - How many has passed so far.public void rendered()
public void display()
public int get()
public float getAverage()
Copyright © 2014. All rights reserved.