Skip to content

Commit

Permalink
Merge pull request #401 from PolyhedralDev/dev/reduce-pipeline-caching
Browse files Browse the repository at this point in the history
Reduce pipeline v2 caching
  • Loading branch information
astrsh authored Jun 20, 2023
2 parents 4001a56 + 3f3e2fe commit 0be7213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public PipelineBiomeProvider(Pipeline pipeline, int resolution, NoiseSampler mut
this.noiseAmp = noiseAmp;
this.chunkSize = pipeline.getChunkSize();
this.biomeChunkCache = Caffeine.newBuilder()
.maximumSize(1024)
.maximumSize(64)
.build(pipeline::generateChunk);

Set<PipelineBiome> biomeSet = new HashSet<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ public class BiomePipelineTemplate implements ObjectTemplate<BiomeProvider> {

@Override
public BiomeProvider get() {
return new PipelineBiomeProvider(new PipelineImpl(source, stages, resolution, 500), resolution, blendSampler, blendAmplitude);
return new PipelineBiomeProvider(new PipelineImpl(source, stages, resolution, 128), resolution, blendSampler, blendAmplitude);
}
}

0 comments on commit 0be7213

Please sign in to comment.