time + fix crash
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user