Increased cache size.

This commit is contained in:
Harrison Deng 2020-04-26 15:41:45 -05:00
parent 2b05dfe4cc
commit b769c83be1
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public class IslandWorldMapper implements CoordinateValidatable {
dfs = new DepthFirstSearch(this);
this.noiseGenerator = new SimplexOctaveGenerator(random, noiseOctaves);
noiseGenerator.setScale(scale);
blockValueCache = new Cache<>(32768);
blockValueCache = new Cache<>(65536);
}
/**

View File

@ -32,8 +32,8 @@ public class BiomePerIslandGenerator implements IslandBiomeGenerator {
public BiomePerIslandGenerator() {
this.temperatureMapGenerator = new TemperatureMapGenerator();
chunkBiomesCache = new Cache<>(512);
chunkGenStatusCache = new Cache<>(512);
chunkBiomesCache = new Cache<>(1024);
chunkGenStatusCache = new Cache<>(1024);
freshCachePropInfo = new FreshCachePropagationInfo();
freshCachePropagator = new DepthFirstSearch(freshCachePropInfo);
existenceInfo = new PreviousGenerationInfo();