This commit is contained in:
mcrcortex
2025-05-02 18:39:14 +10:00
parent 6aebddb773
commit 8b04be72ee
3 changed files with 5 additions and 4 deletions

View File

@@ -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<TimeSampler> allSamplers = new ArrayList<>();
public static final class TimeSampler {
private boolean running;

View File

@@ -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);

View File

@@ -140,8 +140,9 @@ public class RenderService<T extends AbstractSectionRenderer<J, ?>, 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??