This commit is contained in:
mcrcortex
2025-12-01 23:40:31 +10:00
parent e873ce76c6
commit f887b1ac60

View File

@@ -268,10 +268,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(); TimingStatistics.H.start();
//Done here as is allows less gl state resetup //Done here as is allows less gl state resetup
this.modelService.tick(900_000); do { this.modelService.tick(900_000); } while (VoxyClient.isFrexActive() && !this.modelService.areQueuesEmpty());
TimingStatistics.I.stop(); TimingStatistics.H.stop();
} }
GPUTiming.INSTANCE.marker(); GPUTiming.INSTANCE.marker();
TimingStatistics.postDynamic.stop(); TimingStatistics.postDynamic.stop();
@@ -307,6 +307,10 @@ public class VoxyRenderSystem {
TimingStatistics.all.stop(); TimingStatistics.all.stop();
TimingStatistics.I.start();
glFlush();
TimingStatistics.I.stop();
/* /*
TimingStatistics.F.start(); TimingStatistics.F.start();
this.postProcessing.setup(viewport.width, viewport.height, boundFB); this.postProcessing.setup(viewport.width, viewport.height, boundFB);