Round FPS display up

This commit is contained in:
Pazaz 2022-06-27 15:38:23 -04:00
parent 9e79315172
commit 042bdca430

View file

@ -454,7 +454,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
if (lastFpsIndex >= 5) { if (lastFpsIndex >= 5) {
lastFpsIndex = 0; lastFpsIndex = 0;
} }
framesPerSecond = total / 5; framesPerSecond = Math.ceil(total / 5);
lastFpsUpdate = now; lastFpsUpdate = now;
} }