From 4f37d3b5978548076fea0eb0742bf42eac3e2e8d Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 7 Jun 2025 20:32:42 +1000 Subject: [PATCH] remove old memory patch --- .../core/rendering/hierachical/AsyncNodeManager.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/AsyncNodeManager.java b/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/AsyncNodeManager.java index 71ec56f2..344fa886 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/AsyncNodeManager.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/AsyncNodeManager.java @@ -245,9 +245,7 @@ public class AsyncNodeManager { //Limit uploading as well as by geometry capacity being available // must have 50 mb of free geometry space to upload - boolean hasGeometryCapacity = true; - for (int limit = 0; limit < 200 && (hasGeometryCapacity=(this.geometryCapacity-this.geometryManager.getGeometryUsedBytes())>50_000_000); limit++) - { + for (int limit = 0; limit < 200 && ((this.geometryCapacity-this.geometryManager.getGeometryUsedBytes())>50_000_000); limit++) { var job = this.geometryUpdateQueue.poll(); if (job == null) break; @@ -315,11 +313,7 @@ public class AsyncNodeManager { } if (workDone == 0) {//Nothing happened, which is odd, but just return - //we need to do an unsafe hack here - if (!hasGeometryCapacity) { - this.usedGeometryAmount = this.geometryManager.getGeometryUsedBytes(); - VarHandle.fullFence(); - } + //Should probably log that nothing happened, at least once return; } //=====================