From 4aa04c7cce7ba26c38bb0094c4ace94fb60aa916 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Fri, 9 May 2025 00:41:49 +1000 Subject: [PATCH] increase budget --- .../me/cortex/voxy/client/core/rendering/RenderService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/RenderService.java b/src/main/java/me/cortex/voxy/client/core/rendering/RenderService.java index 38116e79..ca57769a 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/RenderService.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/RenderService.java @@ -142,14 +142,14 @@ public class RenderService, J extends Vi //if (this.modelService.getProcessingCount() < 750) {//Very bad hack to try control things - this.geometryUpdateQueue.consumeNano(1_500_000 - (System.nanoTime() - frameStart)); + this.geometryUpdateQueue.consumeNano(Math.max(3_000_000 - (System.nanoTime() - frameStart), 50_000)); } - this.nodeCleaner.tick(this.traversal.getNodeBuffer());//Probably do this here?? - if (this.nodeManager.writeChanges(this.traversal.getNodeBuffer())) {//TODO: maybe move the node buffer out of the traversal class UploadStream.INSTANCE.commit(); } + this.nodeCleaner.tick(this.traversal.getNodeBuffer());//Probably do this here?? + //this needs to go after, due to geometry updates committed by the nodeManager this.sectionRenderer.getGeometryManager().tick();