v0.23.0 · Minecraft 1.20.1

Documentation


Installing

A · Server jar recommended

Drop Chorus-Server-1.20.1-0.23.0.jar in your server folder and rename it to whatever jar your pack already starts — fabric-server-launch.jar, fabric-server-launcher.jar, server.jar, whatever the pack's run.bat / start.sh / panel points at. Start the server the way you always have.

On that first start Chorus installs itself into mods/, adds fabric-api if the pack lacks it, creates plugins/ support, writes config/chorus.properties, benchmarks storage, tunes the JVM, then hands off to the normal Fabric server.

It does not spawn a second JVM Your pack's start scripts, JVM args and panel settings still apply. Chorus runs inside the JVM they launched. If the folder already has a Fabric install, it boots through that with zero network access — which matters, because plenty of hosting containers cannot reach Mojang. Only an empty folder triggers a download.

B · Mod jar

Drop Chorus-1.20.1-complete-0.23.0.jar into mods/ and leave your server jar alone. Same engine, same plugin support; you do the updating, and you don't get the launcher's boot caching.

Updating

Replace the one jar. It removes the old Chorus from mods/ and installs the new one itself. With the mod jar, swap the file in mods/ as usual.

Storage

On first boot Chorus measures your disk — fsync latency and sequential write, done so the page cache cannot fake it — and records the verdict as disk.class. Preloading and async-save behaviour scale with it. HDD hosts get a startup warning: modern modded servers need solid-state storage.


Commands

CommandAliasShows
/chorus /ctps TPS and MSPT, heap, GC, the server's own per-thread-group core usage (not the machine's), async subsystem stats, resolved pool sizing.
/chorus top — Which mods and which machines are eating the tick — by name and by position.
/chorus clusters — The discovered machine-network map and the parallelism ceiling it implies.
/chorus ram — Heap and RSS, per-dimension chunks / entities / block entities, structure-cache and anchor stats.
/chorus ram full — The above plus a class histogram.
/chorus anchor — Chunk anchors. Op-only, permission level 2.
/chorus ai [on|off] — The mob-brain throttle: status, or switch it live. Op-only; persists to chorus.properties.

Chunk anchors

The chunk-loader block, as a command. Stand in the chunk you want kept alive and run /chorus anchor. The chunk lights up — a white box around its footprint, four blue corner pillars — and stays fully loaded and ticking through restarts with nobody within a thousand blocks. Run it again in the same chunk to release it.

SubcommandEffect
/chorus anchorToggle the chunk you are standing in
/chorus anchor add [r]Anchor a (2r+1)² square around you, up to anchor.maxRadius
/chorus anchor remove [r]Release them again
/chorus anchor listEvery anchor on the server, with owner and coords
/chorus anchor showRe-light the outlines near you

Anchors use the same engine-level ticket vanilla /forceload uses, so they are full entity-ticking chunks and every mod respects them. Chorus keeps its own registry alongside (config/chorus-anchors.txt) to track ownership, draw the outline, and never release a chunk somebody force-loaded by other means. They are independent of idle unloading: an empty dimension still sheds its 2,209 spawn chunks while your anchored base inside it keeps running.

Budget Like /forceload, a ticking chunk needs a border-loaded halo, so one isolated anchor holds roughly a 29×29 area (~840 chunks, only the middle ticking). Anchors near each other share that halo — anchoring a whole base costs barely more than anchoring one chunk of it. /chorus ram shows the real count.

Mob AI throttle

Fabric has no activation range: every mob in a ticking chunk re-evaluates its goals and ticks its Brain every tick regardless of distance. Chorus scales that by distance. Within ai.nearBlocks (24) of a player nothing changes; beyond it a mob thinks every 2 ticks, then every 4 (ai.maxInterval), one step per ai.bandBlocks (24). Movement, navigation and the look/jump controls tick every tick, running goals keep running, and anything in combat, riding, ridden or leashed to a player is never throttled.

Measured with nobody online, so every mob sits at the ceiling: the AI slice of the entity phase drops by half or more, ON → OFF → ON on the same crowd. (Those rounds ran under Immersive Optimization's idle schedule; the relative result holds, absolute milliseconds are being re-measured at full rate.) /chorus shows the entity phase split into ai / move / push and the share of brain ticks rested per window.

Gentle by default 4 keeps far-away mob farms, villager halls and iron farms working at a quarter of the brain rate. ai.maxInterval=8 or 16 trades far-away behaviour for TPS. If a farm ever looks wrong, /chorus ai off restores vanilla instantly, and the change survives restarts.

Chunk post-processing

Generating a chunk already runs on worker threads. What lags the server is the tail each chunk pays on the main thread when it becomes ticking — neighbour-shape updates for every worldgen-marked position plus materialising pending block entities, measured at 3–8 ms per chunk on a big pack. Chorus rations it: up to chunk.postBudgetMs (4) per tick, growing with the backlog to chunk.postBudgetMaxMs (15); chunks past the budget finish on the following ticks, oldest first. A chunk starts ticking a few ticks before its fences connect; nothing else changes, and a chunk unloaded while queued keeps its lists on disk exactly as vanilla would after a crash.

/chorus shows the main-thread chunk phase and its parts (post-gen … [n over budget, n caught up, n waiting]) plus the worst tick-to-tick gap — a synchronous chunk load, a GC pause or an autosave stall happens between ticks and never shows in MSPT, so Chorus measures the gap and warns on any stall over a second.

Plugins

Chorus embeds a Bukkit/Spigot/Paper API implementation for Fabric. Put plugins in plugins/ next to mods/ and start the server — no rewrites, no scheduler API to learn. Plugin code keeps the single-main-thread contract it was written against; the parallelism happens underneath it.


config/chorus.properties

The only tuning surface, written for you on first boot. Read-only keys are things Chorus measured, listed so you can see what it decided. Startup arguments work too: -Dchorus.cores=24.

Async subsystems

KeyDefaultMeaning
asyncPathtrueOff-thread mob pathfinding
asyncLostrueOff-thread line-of-sight and targeting
asyncSpawntrueOff-thread mob spawn selection
asyncTrackertrueOff-thread entity tracker updates
asyncSavetrueOff-thread cold-chunk saves
asyncLocatetrueOff-thread /locate structure scans

Parallel engine

KeyDefaultMeaning
beParalleltrueThe parallel block-entity engine
wavestrueIntra-cluster wave scheduling
waves.minCluster5Smallest cluster worth splitting into waves
cartotrueConflict cartographer (machine-network discovery)
carto.rebuild600Seconds between cluster-map rebuilds
parallelExplosionstrueParallel explosion ray casts
preloadtruePredictive chunk preloading
preload.lookahead0Chunks ahead of a moving player. 0 = derive from disk class
path.queueCap256Cap on queued async path requests
report200Ticks between engine report lines in the log

Mob AI

KeyDefaultMeaning
ai.throttletrueScale mob brain ticks by distance from the nearest player
ai.nearBlocks24Within this many blocks of a player, nothing changes
ai.bandBlocks24Each further band doubles the interval: 2 ticks, then 4
ai.maxInterval4Ceiling on ticks between brain updates. 8 or 16 is the aggressive, DAB-style setting

Chunks

KeyDefaultMeaning
chunk.postBudgettrueRation chunk post-processing (shape updates, pending block entities) per tick instead of paying it all at once
chunk.postBudgetMs4Milliseconds per tick spent on post-processing with an empty backlog
chunk.postBudgetMaxMs15Ceiling as the backlog grows (+0.25 ms per queued chunk)

Compatibility

KeyDefaultMeaning
compat.immersiveOptimizationtrueSet Immersive Optimization’s optimizeForceLoadedChunks to false at boot so anchors tick at full rate. false keeps its default

Core budget

KeyDefaultMeaning
cores0Cores Chorus may use. 0 = auto-detect
cores.min1Lower clamp on the auto-detected value
cores.max0Upper clamp. 0 = unclamped
threads.be0Pin the block-entity pool. 0 = derive from the core budget
threads.fork0Pin the wave fork pool
threads.async0Pin the general async pool
threads.save0Pin the save pool

Memory

KeyDefaultMeaning
dimSpawnUnloadtrueRelease a dimension’s spawn region while it is empty
dimSpawnUnload.graceSec120Player-empty seconds before that release
idle.graceSec300Server-empty seconds before whole-server idle mode
idle.overworldSpawntrueRelease the overworld spawn region too when idle
idle.restoreRamptrueRamp restore 4 → 8 → 11 instead of one burst
structureCache.evicttrueEvict idle structure templates
structureCache.ttlSec300How long an unused template survives

JVM auto-tune

KeyDefaultMeaning
autoTune.jvmtrueLet Chorus write -Xms/-Xmx and GC flags into your argument file
tune.heapOverrideMB0Pin the heap yourself. 0 = let Chorus size it
tune.ramVisibleMBread-onlyRAM measured as visible, container limits included
tune.heapTargetMBread-onlyWhat it decided on
tune.bootSecondsread-onlyLast measured boot time

Disk profile

KeyDefaultMeaning
disk.classmeasuredNVME | SSD | HDD, decided on first boot
disk.syncUsmeasuredfsync latency in microseconds
disk.seqMBpsmeasuredSequential write in MB/s

Chunk anchors

KeyDefaultMeaning
anchor.maxRadius4Largest radius /chorus anchor add will accept
anchor.showSec20Seconds the outline stays lit after a command
anchor.alwaysShowfalseKeep anchor outlines permanently visible
anchor.renderRange96Blocks within which outlines are drawn

Boot (server jar only)

KeyDefaultMeaning
boot.chorusMixintrueSwap in the parallel Chorus-Mixin transformer. Only on an exact base-version match; unknown packs keep stock Mixin
boot.prewarmtruePre-transform the learned class list on worker threads. Interlocked — the engine arms workers only once the launcher confirms Chorus-Mixin is active
boot.classCachetrueContent-addressed cache of post-Mixin bytecode

Heap and JVM flags

Chorus measures the RAM actually visible to the server — container limits included — and writes tuned flags into whichever argument file your launcher really reads: variables.txt for ServerPackCreator packs, user_jvm_args.txt for Forge-style scripts and most panels. It marks what it wrote, backs the file up once, and verifies on the next boot. You never edit run.bat.

The managed set is an -Xms/-Xmx pair sized to the box, plus:

-XX:G1PeriodicGCInterval=180000 -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem

The heap-free-ratio pair matters most. With G1's defaults a Minecraft server commits its way up to -Xmx and never gives a byte back — the threshold is never crossed. At 40 the committed heap tracks real usage, so idle RAM returns to the OS as page cache for your region files. Measured on a live 447-mod pack: committed 5.24 GB → 4.03 GB, RSS 6.5 GB → ~4 GB.

To take it back: set tune.heapOverrideMB, or delete the # chorus-managed line from the argument file for full manual control.

Host tuning optional

Chorus never requires host changes. If you administer your own Linux box, these help — extras, not prerequisites:

  • zram swap (zstd, ~50% of RAM) as the first swap tier. Compressed-RAM swap absorbs the JVM's cold pages at microsecond latency where disk swap thrashes — the GC touches pages during marking, and disk-backed swap fights that in a way zram does not.
  • vm.page-cluster=0 (zram readahead off) and vm.swappiness=10.
  • A real swapfile on NVMe as the second tier, lower priority than zram.
  • On Windows, the default pagefile on an NVMe drive fills the same role.

Known incompatibilities

ModStatusWhat to do
lithium (explosions) auto-handled Detected at boot. Chorus stands down and logs how to hand explosions to Chorus instead if you would rather.
immersive_optimization auto-handled Its optimizeForceLoadedChunks default throttles force-loaded chunks up to 1-in-20 with nobody near, which quietly undoes /chorus anchor. Chorus sets it to false at boot (backup kept beside the file, one log line) and leaves the rest alone. compat.immersiveOptimization=false keeps their default.
opac_fixes works on 1.1.4 1.1.x crashed at boot with the Bukkit layer present (its own reflection). 1.1.4 boots clean; if you are on an older build, update it or remove it.
emi_loot upstream bug Its block-loot sync packet can drop clients at join on very large packs. Set parseBlockLoot = false in config/emi_loot_config.toml; chest, mob and gameplay loot sync still work.