mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 06:20:02 +00:00
Sample noise biome cache size
- check the cache bound on a few quarts per column instead of every insert
This commit is contained in:
1 parent
3df1fba518
commit
8b5c109d55
1 file changed
+1
-1
@@ -633,7 +633,7 @@ public final class BukkitBiomePolicy<H, V> implements NativeBiomeSourcePolicy<H>
|
|||||||
return existingHolder;
|
return existingHolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (noiseBiomeCache.size() > NOISE_BIOME_CACHE_MAX) {
|
if ((y & 63) == 0 && noiseBiomeCache.size() > NOISE_BIOME_CACHE_MAX) {
|
||||||
noiseBiomeCache.clear();
|
noiseBiomeCache.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user