Keep regen off the server thread and move it to std

- Load regen chunks asynchronously and skip chunks that were never generated
- Hold a generation stage per regen chunk so a hotload waits for it
- Count skipped chunks apart in the regen progress and summary
- Log each studio hotload with its pack and duration
- Move regen from /iris dev to /iris std on Bukkit and modded
This commit is contained in:
piexel committed 2026-11-14 18:42:23 +01:00
1 parent ed037ea40b
commit e0aeabd520
10 files changed
+248 -110

No files matched your search

@@ -206,6 +206,23 @@ public class IrisModdedCommandParityTest {
assertNotNull("pack cp", child(child(iris, "pk"), "cp").getCommand());
}
@Test
public void regenLivesUnderStudio() {
SharedConstants.tryDetectVersion();
Bootstrap.bootStrap();
CommandDispatcher<CommandSourceStack> dispatcher = new CommandDispatcher<>();
IrisModdedCommands.register(new NativeCommandRegistration(dispatcher));
CommandNode<CommandSourceStack> iris = child(dispatcher.getRoot(), "iris");
assertNotNull("std regen", child(child(iris, "std"), "regen").getCommand());
assertNotNull("studio rg radius", child(child(child(iris, "studio"), "rg"), "radius").getCommand());
assertNull("top-level regen", iris.getChild("regen"));
assertNull("top-level rg", iris.getChild("rg"));
assertTrue(ModdedCommandHelp.consoleLines("studio").stream().anyMatch((String line) ->
line.startsWith("/iris studio regen [radius] (rg) - ")));
}
@Test
public void consoleHelpListsEveryEntryWithInlineUsageAndDescription() {
List<String> root = ModdedCommandHelp.consoleLines("");