This commit is contained in:
mcrcortex
2025-10-27 10:16:04 +10:00
parent 8d4d823537
commit d909d82c33
2 changed files with 4 additions and 3 deletions

View File

@@ -266,9 +266,10 @@ public class VoxyRenderSystem {
UploadStream.INSTANCE.tick(); UploadStream.INSTANCE.tick();
while (this.renderDistanceTracker.setCenterAndProcess(viewport.cameraX, viewport.cameraZ) && VoxyClient.isFrexActive());//While FF is active, run until everything is processed while (this.renderDistanceTracker.setCenterAndProcess(viewport.cameraX, viewport.cameraZ) && VoxyClient.isFrexActive());//While FF is active, run until everything is processed
TimingStatistics.I.start();
//Done here as is allows less gl state resetup //Done here as is allows less gl state resetup
this.modelService.tick(Math.max(3_000_000-(System.nanoTime()-startTime), 500_000)); this.modelService.tick(900_000);
TimingStatistics.I.stop();
} }
GPUTiming.INSTANCE.marker(); GPUTiming.INSTANCE.marker();
TimingStatistics.postDynamic.stop(); TimingStatistics.postDynamic.stop();

View File

@@ -54,7 +54,7 @@ public class WorldEngine {
this.instanceIn = instance; this.instanceIn = instance;
int cacheSize = 1024; int cacheSize = 1024;
if (Runtime.getRuntime().maxMemory()>=(1L<<32)-200<<20) { if (Runtime.getRuntime().maxMemory()>=(1L<<32)-(200L<<20)) {
cacheSize = 2048; cacheSize = 2048;
} }