Skip to content

Commit 4aa04c7

Browse files
committed
increase budget
1 parent d9c4116 commit 4aa04c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/me/cortex/voxy/client/core/rendering/RenderService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ public void renderFarAwayOpaque(J viewport, GlTexture depthBoundTexture, long fr
142142

143143
//if (this.modelService.getProcessingCount() < 750)
144144
{//Very bad hack to try control things
145-
this.geometryUpdateQueue.consumeNano(1_500_000 - (System.nanoTime() - frameStart));
145+
this.geometryUpdateQueue.consumeNano(Math.max(3_000_000 - (System.nanoTime() - frameStart), 50_000));
146146
}
147147

148-
this.nodeCleaner.tick(this.traversal.getNodeBuffer());//Probably do this here??
149-
150148
if (this.nodeManager.writeChanges(this.traversal.getNodeBuffer())) {//TODO: maybe move the node buffer out of the traversal class
151149
UploadStream.INSTANCE.commit();
152150
}
151+
this.nodeCleaner.tick(this.traversal.getNodeBuffer());//Probably do this here??
152+
153153

154154
//this needs to go after, due to geometry updates committed by the nodeManager
155155
this.sectionRenderer.getGeometryManager().tick();

0 commit comments

Comments
 (0)