From 46bb78530f24a76057e174e23f5b43e897482b82 Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Wed, 5 May 2004 14:35:05 +0000 Subject: [PATCH] *** empty log message *** --- src/java/org/lwjgl/examples/Game.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/lwjgl/examples/Game.java b/src/java/org/lwjgl/examples/Game.java index dfa7f3aa..0bf5611c 100644 --- a/src/java/org/lwjgl/examples/Game.java +++ b/src/java/org/lwjgl/examples/Game.java @@ -52,7 +52,7 @@ public class Game { public static final String GAME_TITLE = "My Game"; /** Desired frame time */ - private static final float FRAMETIME = 1.0f / 60.0f; + private static final int FRAMERATE = 60; /** Exit the game */ private static boolean finished; @@ -111,7 +111,7 @@ public class Game { // The window is in the foreground, so we should play the game logic(); render(); - org.lwjgl.Display.sync(FRAMETIME); + org.lwjgl.Display.sync(FRAMERATE); } else { // The window is not in the foreground, so we can allow other stuff to run and // infrequently update