diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index 8960d28..129bf70 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -50,7 +50,9 @@ import static org.lwjgl.opengl.GL20.*; import static org.lwjgl.opengl.GL30.*; public class LODRenderer { - + + public static boolean debugEnabled = Boolean.parseBoolean(System.getProperty("lodmod.debug", "false")); + public boolean hasInited = false; private boolean[] wasDown = new boolean[256]; @@ -109,7 +111,9 @@ public class LODRenderer { } mainLoop(); - handleKeyboard(); + if(debugEnabled) { + handleKeyboard(); + } if(lastGCTime == -1 || (System.currentTimeMillis() - lastGCTime) > gcInterval) { runGC(); lastGCTime = System.currentTimeMillis(); |