Just wondering, right now of course there's nothing really being drawn, just forcing a bar back and forth across the screen to catch lags.
But, it is telling me that the current fps is at 980+?
Here is the method, it's being called upon the first loop.
1 2 3 4 5 6 7 8
| public void updateFPS() { currentFPS ++; if (System.currentTimeMillis() - start >= 1000) { FPS = currentFPS; currentFPS = 0; start = System.currentTimeMillis(); } } |
1 2 3 4
| public void cycle() { updateFPS(); System.out.println("FPS: "+FPS); } |
Now I've made a couple of projects, and the FPS usually turns out from 20-70 highs of 140, so i'm thinking this is wrong, can someone confirm?
What should the average fps be?
Maximum, minimum, average?