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: f2236a848 8b5c109d5
This commit is contained in:
piexel committed 2026-11-10 01:01:09 +01:00
1 parent 39e4015b44
commit 8c489e4a26
3 files changed
+8 -13

No files matched your search

@@ -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]) {