mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Skip the boundary field for plain floating-island parent lookups
Parent lookups built the whole boundary field per column even where no floating child needs edge distances, and the noise biome cache bound was checked on every insert. Parent lookups now read the biome source directly, and the cache bound is checked only at quart y multiples of 64. Upstream:f2236a8488b5c109d5
This commit is contained in:
1 parent
39e4015b44
commit
8c489e4a26
3 files changed
+8
-13
No files matched your search
+1
-5
@@ -47,7 +47,7 @@ public final class FloatingIslandBoundarySampler {
|
||||
}
|
||||
|
||||
public ResourceId parent(int x, int z) {
|
||||
return parentField(x, z, EDGE_TAPER_WIDTH).parent(x, z);
|
||||
return source.sample(x, z);
|
||||
}
|
||||
|
||||
public double edgeFade(ResourceId parent, int x, int z) {
|
||||
@@ -229,10 +229,6 @@ public final class FloatingIslandBoundarySampler {
|
||||
build(source);
|
||||
}
|
||||
|
||||
private ResourceId parent(int x, int z) {
|
||||
return parents[geometry.index(x - minX, z - minZ)];
|
||||
}
|
||||
|
||||
private int edgeDistance(ResourceId expected, int x, int z) {
|
||||
int index = geometry.index(x - minX, z - minZ);
|
||||
if (!sameBiome(expected, parents[index]) || !viable[index]) {
|
||||
|
||||
Reference in new issue
Block a user