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;
public static final Mode mode = Mode.REALTIME;
To download the source for FPS.java directly, just follow the website link.
10930 views / 727 in the last 7 days
3 votes | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes
Want to leave a comment? You must first log in.