mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 17:23:59 +00:00
Answer server-thread terrain queries from natural terrain
A height or biome query from the tick thread no longer blocks on a cold hydrology plan: it answers from the natural streams and asks the planning pool for the tiles meanwhile. A new world prefetches the tiles around spawn when the generator is injected, and the hydrology pool gets full parallelism instead of a third. Also stops the shared corner-bounds cache from pinning a non-finite sample and fences its two stamp reads.
This commit is contained in:
8 files changed
+115
-9
No files matched your search
+6
@@ -42,6 +42,7 @@ import art.arcane.iris.spi.IrisLogging;
|
||||
import art.arcane.iris.spi.IrisPlatforms;
|
||||
import art.arcane.iris.util.common.scheduling.J;
|
||||
import art.arcane.volmlib.util.collection.KList;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldBorder;
|
||||
|
||||
@@ -112,6 +113,11 @@ public final class BukkitEnginePlatformHooks implements EnginePlatformHooks {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMainThread() {
|
||||
return Bukkit.isPrimaryThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPregeneratorActive(Engine engine) {
|
||||
IrisWorld world = engine.getWorld();
|
||||
|
||||
Reference in new issue
Block a user