Clipped pregen prefetch

- Limited chunk prefetch rings to the windows a bounded pregeneration still needs
- Forwarded pregeneration region bounds from the async, medieval and modded methods
- Restored unclipped prefetch when the pregeneration closes
- Added a runtime test for clipped and restored prefetch
This commit is contained in:
Brian Neumann-Fopiano committed 2026-10-30 20:54:55 -04:00
1 parent ca33273d17
commit def73cff96
7 files changed
+116 -1

No files matched your search

@@ -348,6 +348,11 @@ public final class ModdedPregenMethod implements PregeneratorMethod {
return false;
}
@Override
public void onRegionBounds(int minRegionX, int minRegionZ, int maxRegionX, int maxRegionZ) {
hydrology.bound(minRegionX, minRegionZ, maxRegionX, maxRegionZ);
}
@Override
public void onRegionsAhead(List<long[]> regions) {
if (!closing.get()) {