diff --git a/core/src/main/java/art/arcane/iris/configuration/IrisSettings.java b/core/src/main/java/art/arcane/iris/configuration/IrisSettings.java index c29631055..07b4d316f 100644 --- a/core/src/main/java/art/arcane/iris/configuration/IrisSettings.java +++ b/core/src/main/java/art/arcane/iris/configuration/IrisSettings.java @@ -200,12 +200,20 @@ public class IrisSettings { private static final int REFERENCE_PLATE_MEGABYTES = 48; public IrisRuntimeSchedulerMode runtimeSchedulerMode = IrisRuntimeSchedulerMode.AUTO; public IrisPaperLikeBackendMode paperLikeBackendMode = IrisPaperLikeBackendMode.AUTO; + @ConfigDoc(value = "Seconds pregen waits for a chunk to load.", + impact = "Clamped to 5 to 120.") public int chunkLoadTimeoutSeconds = 15; public int timeoutWarnIntervalMs = 500; + @ConfigDoc(value = "Milliseconds between saves during pregen.", + impact = "Clamped to 5000 to 900000.") public int saveIntervalMs = 30_000; + @ConfigDoc(value = "Mantle regions pregen keeps in memory before it pauses to let them unload.", + impact = "Lowered automatically for tall worlds and small heaps; minimum 16.") public int maxResidentTectonicPlates = 96; public int mantleBackpressureWaitMs = 25; public int mantleBackpressureTimeoutMs = 60_000; + @ConfigDoc(value = "Chunks a modded pregen generates at once.", + impact = "0 uses two per CPU core, between 16 and 48; capped at 512.") public int moddedPregenInFlight = 0; public int getChunkLoadTimeoutSeconds() { @@ -269,6 +277,8 @@ public class IrisSettings { public static class IrisSettingsPerformance { private IrisSettingsEngineSVC engineSVC = new IrisSettingsEngineSVC(); public boolean trimMantleInStudio = false; + @ConfigDoc(value = "Seconds an idle mantle region stays in memory before it unloads.", + impact = "Shortens automatically as the heap fills up.") public int mantleKeepAlive = 30; public int noiseCacheSize = 1_024; public int resourceLoaderCacheSize = 1_024; @@ -302,8 +312,11 @@ public class IrisSettings { @ConfigDoc(value = "Turns unresolved pack content keys and bad block-state properties into blocking pack errors.", impact = "The -Diris.strictContent system property overrides this.") public boolean strictContentKeys = false; + @ConfigDoc("Hue shift of the colour gradient on Iris chat messages.") public int spinh = -20; + @ConfigDoc("Saturation shift of the same gradient.") public int spins = 7; + @ConfigDoc("Brightness shift of the same gradient.") public int spinb = 8; @@ -325,6 +338,8 @@ public class IrisSettings { public static class IrisSettingsGenerator { public String defaultWorldType = "overworld"; public boolean preventLeafDecay = true; + @ConfigDoc(value = "Width in blocks over which new terrain blends into terrain generated by an older pack version.", + impact = "Clamped to 16 to 8192.") public int generationTransitionWidthBlocks = 256; public int getGenerationTransitionWidthBlocks() { @@ -344,7 +359,10 @@ public class IrisSettings { @Data public static class IrisSettingsStudio { + @ConfigDoc("Opens VS Code on the server machine when a studio opens.") public boolean openVSCode = true; + @ConfigDoc(value = "Blends hotloaded studio changes into existing terrain instead of cutting hard at chunk edges.", + impact = "Uses generator.generationTransitionWidthBlocks as the blend width.") public boolean blendChanges = true; public boolean disableTimeAndWeather = true; public boolean entitySpawning = true; @@ -355,7 +373,10 @@ public class IrisSettings { public static class IrisSettingsEngineSVC { public boolean useVirtualThreads = true; public boolean forceMulticoreWrite = false; + @ConfigDoc("Thread priority of engine workers, 1 to 10.") public int priority = Thread.NORM_PRIORITY; + @ConfigDoc(value = "Number of engine worker threads.", + impact = "-1 uses the square root of the CPU count; capped at twice the CPU count.") public int parallelism = -1; public int getPriority() {