From 72fd7858556f9fe5b1a9950ed41812690fdeb4d8 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:14:29 +1000 Subject: [PATCH] add more sync wait conditions --- .../client/core/rendering/hierachical/AsyncNodeManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 5fb9889a..0d006a9f 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 @@ -478,7 +478,10 @@ public class AsyncNodeManager { results.usedGeometry = this.geometryManager.getGeometryUsedBytes(); results.currentMaxNodeId = this.manager.getCurrentMaxNodeId(); - this.needsWaitForSync |= results.geometryUpload.currentElemCopyAmount*8L > 4L<<20;//4mb limit per frame + this.needsWaitForSync |= results.geometryUpload.currentElemCopyAmount*8L > 2L<<20;//2mb limit per frame + this.needsWaitForSync |= results.cleanerOperations.size() > 1024; + this.needsWaitForSync |= results.scatterWriteLocationMap.size() > 4096; + this.needsWaitForSync |= results.tlnDelta.size() > 10; if (!RESULT_HANDLE.compareAndSet(this, null, results)) { throw new IllegalArgumentException("Should always have null");