diff options
author | makamys <makamys@outlook.com> | 2022-06-21 05:52:12 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-21 06:07:00 +0200 |
commit | 6f22d15c8532ee5e5d81a383363a6148e9449ebb (patch) | |
tree | 98f3cace332a49890c35697ac9bd4d3359ace1e3 /src/main/java/makamys/neodymium | |
parent | d8223acc07b18871525b02618c18c6e5f9821457 (diff) | |
download | Neodymium-6f22d15c8532ee5e5d81a383363a6148e9449ebb.tar.gz Neodymium-6f22d15c8532ee5e5d81a383363a6148e9449ebb.tar.bz2 Neodymium-6f22d15c8532ee5e5d81a383363a6148e9449ebb.zip |
Disable unused lod stuff that was wasting a bunch of resources
Diffstat (limited to 'src/main/java/makamys/neodymium')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/NeoRenderer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java index 5ced887..117fcb3 100644 --- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java +++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java @@ -228,10 +228,10 @@ public class NeoRenderer { } private void mainLoop() { - while(!farChunks.isEmpty()) { + /*while(!farChunks.isEmpty()) { NeoChunk lodChunk = receiveFarChunk(farChunks.remove()); sendChunkToGPU(lodChunk); - } + }*/ if(Minecraft.getMinecraft().playerController.netClientHandler.doneLoadingTerrain) { Entity player = Minecraft.getMinecraft().renderViewEntity; @@ -239,7 +239,7 @@ public class NeoRenderer { List<ChunkCoordIntPair> newServerChunkLoadQueue = new ArrayList<>(); if(Double.isNaN(lastSortX) || getLastSortDistanceSq(player) > 16 * 16) { - int centerX = (int)Math.floor(player.posX / 16.0); + /*int centerX = (int)Math.floor(player.posX / 16.0); int centerZ = (int)Math.floor(player.posZ / 16.0); for(int x = -renderRange; x <= renderRange; x++) { @@ -260,7 +260,7 @@ public class NeoRenderer { lastSortX = player.posX; lastSortY = player.posY; - lastSortZ = player.posZ; + lastSortZ = player.posZ;*/ for(Iterator<ChunkCoordIntPair> it = loadedRegionsMap.keySet().iterator(); it.hasNext();) { ChunkCoordIntPair k = it.next(); NeoRegion v = loadedRegionsMap.get(k); |