|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.timing.PerformanceStats
public class PerformanceStats
Displays each second on the command line the number of milliseconds spent for a frame and the number of frames per second.
| Constructor Summary | |
|---|---|
PerformanceStats()
Create a new PerformanceStats with printing enabled by default |
|
PerformanceStats(boolean printingEnabled)
Create a new PerformanceStats with printing enabled/disabled |
|
| Method Summary | |
|---|---|
float |
getFPS()
|
long |
getMPF()
|
boolean |
isPrintingEnabled()
|
void |
print()
Print stats |
void |
setPrintingEnabled(boolean printingEnabled)
|
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerformanceStats()
public PerformanceStats(boolean printingEnabled)
printingEnabled - If true, prints some stats on the command line each second| Method Detail |
|---|
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updatable
update in interface UpdatablegameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.public float getFPS()
public long getMPF()
public boolean isPrintingEnabled()
public void setPrintingEnabled(boolean printingEnabled)
printingEnabled - set on/off automatic stat printingpublic void print()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||