From 8b04be72ee8ed79380791a0ec94c117583df0836 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Fri, 2 May 2025 18:39:14 +1000 Subject: [PATCH] other --- src/main/java/me/cortex/voxy/client/TimingStatistics.java | 2 +- .../java/me/cortex/voxy/client/core/VoxyRenderSystem.java | 2 +- .../me/cortex/voxy/client/core/rendering/RenderService.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/TimingStatistics.java b/src/main/java/me/cortex/voxy/client/TimingStatistics.java index bd66d84c..f12a7b51 100644 --- a/src/main/java/me/cortex/voxy/client/TimingStatistics.java +++ b/src/main/java/me/cortex/voxy/client/TimingStatistics.java @@ -4,7 +4,7 @@ import java.lang.invoke.VarHandle; import java.util.ArrayList; public class TimingStatistics { - public static double ROLLING_WEIGHT = 0.975; + public static double ROLLING_WEIGHT = 0.96; private static final ArrayList allSamplers = new ArrayList<>(); public static final class TimeSampler { private boolean running; diff --git a/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java b/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java index 714e9b24..f520b35a 100644 --- a/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java +++ b/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java @@ -211,7 +211,7 @@ public class VoxyRenderSystem { this.renderDistanceTracker.setCenterAndProcess(cameraX, cameraZ); //Done here as is allows less gl state resetup - this.renderer.tickModelService(4_000_000-(System.nanoTime()-startTime)); + this.renderer.tickModelService(5_000_000-(System.nanoTime()-startTime)); } glBindFramebuffer(GlConst.GL_FRAMEBUFFER, oldFB); 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 1c221833..9497d1b0 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 @@ -140,8 +140,9 @@ public class RenderService, J extends Vi this.sectionUpdateQueue.consume(128); - if (this.modelService.getProcessingCount() < 750) {//Very bad hack to try control things - this.geometryUpdateQueue.consumeNano(1_500_000 - (System.nanoTime() - frameStart)); + //if (this.modelService.getProcessingCount() < 750) + {//Very bad hack to try control things + this.geometryUpdateQueue.consumeNano(2_000_000 - (System.nanoTime() - frameStart)); } this.nodeCleaner.tick(this.traversal.getNodeBuffer());//Probably do this here??