Report as inappropriate.
The FPS counter can now take one of two modes, the realtime mode is how it's been working up until now. If you change the mode to average then it will update the reading every second with the number of frames that have occured in the second previous - this latter mode should be more useful / accurate than how it's been working up until now for most situations.
Mode.AVERAGE is the default, to change it just change:
public static final Mode mode = Mode.AVERAGE;
to:
public static final Mode mode = Mode.REALTIME;
To download the source for FPS.java directly, just follow the website link.
12770 views / 15 in the last 7 days
4 votes | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes
Visit the web page for this scenario.
Want to leave a comment? You must first log in.
2008/9/12
2008/9/12
2008/9/12
2008/9/12
2009/6/18
2009/6/19