Read the dimension once per biome actuation

- Hoist the dimension lookup out of the column loop
This commit is contained in:
piexel committed 2026-11-27 00:48:50 +01:00
1 parent 417e82d570
commit ee9dfdfb2f
1 file changed
+2 -1
@@ -61,6 +61,7 @@ public class IrisBiomeActuator extends EngineAssignedActuator<NativeBiome> {
ChunkedDataCache<IrisBiome> biomeCache = context.getBiome(); ChunkedDataCache<IrisBiome> biomeCache = context.getBiome();
IrisComplex complex = context.getComplex(); IrisComplex complex = context.getComplex();
DimensionStackContext dimensionStackContext = engine.getDimensionStackContext(); DimensionStackContext dimensionStackContext = engine.getDimensionStackContext();
IrisDimension dimension = getDimension();
for (int xf = 0; xf < width; xf++) { for (int xf = 0; xf < width; xf++) {
for (int zf = 0; zf < depth; zf++) { for (int zf = 0; zf < depth; zf++) {
@@ -69,7 +70,7 @@ public class IrisBiomeActuator extends EngineAssignedActuator<NativeBiome> {
IrisBiome biome = biomeCache.get(xf, zf); IrisBiome biome = biomeCache.get(xf, zf);
NativeBiome platformBiome = resolve(biomeKey( NativeBiome platformBiome = resolve(biomeKey(
biome, biome,
getDimension(), dimension,
engine, engine,
worldX, worldX,
0, 0,