h
This commit is contained in:
@@ -64,9 +64,10 @@ public class VoxyRenderSystem {
|
||||
//Keep the world loaded, NOTE: this is done FIRST, to keep and ensure that even if the rest of loading takes more
|
||||
// than timeout, we keep the world acquired
|
||||
world.acquireRef();
|
||||
|
||||
try {
|
||||
//wait for opengl to be finished, this should hopefully ensure all memory allocations are free
|
||||
glFinish();glFinish();
|
||||
glFinish();
|
||||
glFinish();
|
||||
|
||||
//Trigger the shared index buffer loading
|
||||
SharedIndexBuffer.INSTANCE.id();
|
||||
@@ -93,6 +94,10 @@ public class VoxyRenderSystem {
|
||||
this.renderDistanceTracker.setRenderDistance(VoxyConfig.CONFIG.sectionRenderDistance);
|
||||
|
||||
this.chunkBoundRenderer = new ChunkBoundRenderer();
|
||||
} catch (RuntimeException e) {
|
||||
world.releaseRef();//If something goes wrong, we must release the world first
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public void setRenderDistance(int renderDistance) {
|
||||
|
||||
@@ -56,7 +56,7 @@ public class RenderService<T extends AbstractSectionRenderer<J, Q>, J extends Vi
|
||||
|
||||
geometryCapacity = Math.min(geometryCapacity, limit);
|
||||
}
|
||||
//geometryCapacity = 1<<24;
|
||||
//geometryCapacity = 1<<28;
|
||||
//geometryCapacity = 1<<30;//1GB test
|
||||
return geometryCapacity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user