diff options
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/NeoRenderer.java')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/NeoRenderer.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java index 7a74141..03c7911 100644 --- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java +++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java @@ -49,6 +49,7 @@ public class NeoRenderer { public boolean hasInited = false; public boolean destroyPending; public boolean reloadPending; + public int rendererSpeedup; private static boolean[] wasDown = new boolean[256]; @@ -216,6 +217,13 @@ public class NeoRenderer { if(Keyboard.isKeyDown(Keyboard.KEY_LEFT) && !wasDown[Keyboard.KEY_LEFT]) { reloadPending = true; } + if(Keyboard.isKeyDown(Keyboard.KEY_RIGHT) && !wasDown[Keyboard.KEY_RIGHT]) { + if(rendererSpeedup == 0) { + rendererSpeedup = 300; + } else { + rendererSpeedup = 0; + } + } } for(int i = 0; i < 256; i++) { wasDown[i] = Keyboard.isKeyDown(i); @@ -558,6 +566,11 @@ public class NeoRenderer { "Meshes: " + ChunkMesh.instances + " (" + ChunkMesh.usedRAM / 1024 / 1024 + "MB)", "Rendered: " + renderedMeshes + " (" + renderedQuads / 1000 + "KQ)" )); + if(rendererSpeedup > 0) { + text.addAll(Arrays.asList( + "(!) Renderer speedup active" + )); + } return text; } |