time + fix crash

This commit is contained in:
mcrcortex
2025-10-27 10:13:38 +10:00
parent 2534740cda
commit 703bf5f1d8
2 changed files with 3 additions and 3 deletions

View File

@@ -187,9 +187,9 @@ public abstract class AbstractRenderPipeline extends TrackedObject {
glMemoryBarrier(GL_FRAMEBUFFER_BARRIER_BIT | GL_PIXEL_BUFFER_BARRIER_BIT); glMemoryBarrier(GL_FRAMEBUFFER_BARRIER_BIT | GL_PIXEL_BUFFER_BARRIER_BIT);
TimingStatistics.I.start(); TimingStatistics.F.start();
this.traversal.doTraversal(viewport); this.traversal.doTraversal(viewport);
TimingStatistics.I.stop(); TimingStatistics.F.stop();
} while (this.frexStillHasWork.getAsBoolean()); } while (this.frexStillHasWork.getAsBoolean());
} }

View File

@@ -115,7 +115,7 @@ public class ActiveSectionTracker {
section = this.lruSecondaryCache.remove(key); section = this.lruSecondaryCache.remove(key);
WorldSection removal = null; WorldSection removal = null;
if (section == null && this.lruSize+100<this.lruSecondaryCache.size()+this.getLoadedCacheCount()) {//Add a self clamping lru case for when there are alot of loaded sections if (section == null && (!this.lruSecondaryCache.isEmpty()) && this.lruSize+100<this.lruSecondaryCache.size()+this.getLoadedCacheCount()) {//Add a self clamping lru case for when there are alot of loaded sections
removal = this.lruSecondaryCache.removeFirst(); removal = this.lruSecondaryCache.removeFirst();
} }