STYGION Optimize 0.5.2 (beta) for 1.21.1 NeoForge
Curse Maven Snippet
What's new
Fewer idle Mekanism blocks tick, Sable can no longer abort the server, and everything from 0.4.9-0.5.1 (server fixes that ran on STYGION MC but were never released on their own) is in this file. On a copy of our own world (STYGION MC, 29 Nov 2026, same server, A/B by switch, 5 minutes each): the four new sleepers alone took the tick from 18.6 / 18.5 ms (off) to 16.6 / 15.8 ms (on); all self tests passed.
- One register of sleepers (
tick/SleepRules): every kind of block entity that may leave the list of ticking blocks while idle is one rule (its classes, its switch, its family), no longer a copy of the machinery per kind. - More idle Mekanism blocks sleep, each with its own switch in
[tick](on, withmekanismCasingSleep): pressure dispersers (mekanismPressureDisperserSleep), fission reactor casings except the corners that play the sound (mekanismFissionCasingSleep), SPS casings except the sound one (mekanismSpsCasingSleep), and superheating elements while they show whether their boiler is hot - the boiler wakes them on the tick that changes (mekanismSuperheatingSleep). The multiblocks work, glow and sound exactly as before. - A Mekanism casing is woken by
setActiveonly when the state really changes (the same value does nothing in Mekanism).
0.5.1 (28. 11. 2026, server crash fix)
- Sable's native physics can no longer abort the server (
sableBodyGuard, on): Sable 2.0.6 asks its Rapier physics about a body with a lookup that panics when Rapier no longer has that body, and the panic cannot cross JNI, so the whole process aborts (exit code 134, no crash report). STYGION MC went down so twice on 28 Nov 2026, both times inRapier3D.getPoseright after a Create Big Cannons drop mortar shell was fired from a ship. Every call of Sable's Rapier pipeline about one body (pose, velocity, forces, wake-up, mass, bounds, chunk upload, removal) is now checked against the bodies Rapier really has (one hash lookup); a call about a missing body is left out, the ship keeps its pose and gets a new body the way Sable recovers a ship whose physics went wrong. One warning goes to the log the first time. A bug of Sable, reported upstream; self testsablebody on|off, labtools/itest/sablebody.mjs.
0.5.0 (27. 11. 2026, server performance)
Server fixes for the costs that took STYGION MC from 33 to 52 ms a tick at 1-3 players in one week (ships, idle block
entities, chunk loads on the main thread). Each has its own switch, on by default except autosaveSpreadTicks; each
gives the same result as before - the self tests of SelfTest05 run the old and the new path side by side and compare
(tools/itest/lab05.mjs, with the real mods of the pack).
- Ships of Sable with Simulated Coasters (
coastersPaletteScan, on): Coasters looks for its rivet and cart blocks in every ship twice in each of Sable's two physics steps a tick, by reading all 4 096 blocks of every non-empty section of the ship's plot - 7 ms a tick with one big ship, 16 ms with two. Now a section whose palette has no such block is skipped (the palette never says "no" for a block that is there); the same blocks are found. - Ships no longer leak (
coastersShipCachePurge, on): Coasters kept the last scan of every ship it ever saw in a static map, and with it the ship's plot and all its chunks, for the life of the server (AllTheLeaks: 2 999 chunks in 11 hours, +2.3 GB of live heap). Removed ships now leave that map once a tick; nothing read them. - Mekanism transporters with stacks that have nowhere to go (
mekanismTransporterNoPathMemo, on): each such stack asked the whole network for a destination again, every time it reached the end of its path (STYGION MC 25. 11.: one transporter with 3 469 stacks of soul sand and a full drawer, 132 ms of every tick, TPS 5). Within one tick of one transporter the same question now gets the earlier "no" until something makes room (a delivery, a pull, a dropped plan); stacks go exactly where they went before. - More idle Mekanism parts sleep (
mekanismMoreSleepers, on, withmekanismCasingSleep): turbine casings and vents, fusion reactor frames, and the inner blocks whose tick never does anything by itself (fission fuel assemblies, saturating condensers, turbine rotors and coils, rotational complexes, supercharged coils, induction providers) leave the list of ticking blocks while nothing can give them work - ~10 000 tickers on STYGION MC. - Idle Mekanism cables, tubes, pipes and heat conductors sleep (
mekanismTransmitterSleep, on): their tick only joins the network after loading, refreshes connections when asked and pulls through sides set to "pull"; the others (~6 000 on STYGION MC) leave the list and come back the moment one of these happens. The networks move everything as before. - Block entity pass (
blockEntityChunkStatusCache, on;blockEntityTickerCompaction, off): "does this chunk tick" is answered once per chunk and pass instead of once per block entity (asked again after any change of any chunk's status or entities); optionally stopped tickers are removed in one pass at the end of the tick instead of one by one from the list (MC-117075) - off by default, because in the lab (45 000 tickers, 2 048 removed at once) vanilla's removal cost no measurable time. Same tickers, same order. - Structure template sizes remembered (
structureTemplateSizeCache, on): loading a chunk with part of a jigsaw structure read each piece's template only to work out its bounding box from the template's size, on the main thread and from disk when the template cache was emptied (40-55 ms in slow ticks). The size is remembered until templates are reloaded or changed, and the box worked out from it by the game's own formula. (The box saved in the chunk is not the same: jigsaw placement grows some boxes later - the lab found 35 of 136 village pieces - so it is not used.) - MekaTool teleport without stopping the server (
mekaToolAsyncChunks, on): its line of sight loaded every unloaded chunk on the way on the main thread (STYGION MC: 70 s of waiting in 5 minutes). Such chunks are now asked for without waiting and the same use is made again for the player when they are there, normally a few ticks later. - Create Thrusters links in memory (
createThrustersLinkIndex, on): every block broken anywhere ran a SQLite query on the main thread to find out whether it was linked to a thruster controller. The linked positions are kept in memory, read again after any insert; only those are asked. - Autosave spread over ticks (
autosaveSpreadTicks, 0 = off): the regular autosave writes every changed chunk in one tick (250-320 ms on STYGION MC). With a value, the chunks are handed to the game's own save over that many ticks;/save-all, backups and stopping still write everything at once. - Evolved Mekanism 1.3.0-fix3 fixed the Noctis Rozuli ore scan itself (every 20 ticks, loaded chunks only):
noctisRozuliSectionScanis left out for fix3 and later, with an info line; it stays for older builds.
0.4.10 (21. 11. 2026, server fix)
- A world whose light engine hits one bad update no longer stops lighting for good, and with it every chunk load of
that world (
lightEngineGuard, on): STYGION MC 21. 11. 2026 13:30:28, aNullPointerExceptionin the light thread (LayerLightSectionStorage.getStoredLevel: a light increase queued for a section that has no light data). Vanilla's threaded light engine then never runs again - its "scheduled" flag stays set and the chunk task sorter's light queue waits for an answer that never comes - so no chunk of that world can finish loading (players see holes, and the first mod that waits for a chunk on the main thread freezes the server: four minutes later a waystone teleport did, and the watchdog killed the server after a single tick of 120 s). Now such an increase is skipped, as vanilla already skips every neighbour without data (there is nothing to light), with one log line a minute naming the position, and any other exception of a light update or light task is logged and the engine goes on. Self testslightguard(the exception on a light engine of our own: off throws it, on skips) andlightengine on|off(the whole failure on the world's own engine: on, a far chunk still loads; off, it never does). - A waystone teleport no longer stops the server while its destination loads (
waystonesAsyncChunks, on,waystonesChunkWaitSeconds15): Waystones 21.1.47 builds its teleports on futures, but the chunk request it makes on the main thread (ServerChunkCache.getChunkFuture) waits right there until the chunks are read or generated - a pause for everybody on each teleport to an unloaded place, and a hang until the watchdog when the chunk never comes. Now the chunks are asked for without waiting and kept wanted until they are there; Waystones then checks, charges and teleports as it already does after its preparation. A destination that is not there within 15 s fails with Waystones' own message ("The destination could not be loaded.") and costs nothing. Self testwaystones prepare|async|sync|async-dead|sync-deadwith Waystones' ownforceTeleportAsync;tools/itest/waystones.mjsreproduces the crash of 21. 11. (two starts: fixes on; vanilla, ending in the watchdog with the same stack).
0.4.9 (20. 11. 2026, server fix)
- A ship that splits after the ship it came from was removed no longer crashes the server (
sableSplitGuard, on): STYGION MC 20. 11. 2026 22:37 with 10 players,RuntimeException: Body has been removedin Sable'sRapierPhysicsPipeline.assertBodyValid. When a ship splits, Sable assembles each new piece; Sable 2.0.6 reads the speed of the old ship before it moves the blocks out and leaves the old ship alone once it is removed. Oritech Sable Compat 0.2.0 replaces that assembly with an older copy that moves the blocks first and then asks the old ship's physics body for its speed - when moving the blocks out removed the old ship, that body is gone and the server tick died. Now such a piece is placed the way Sable itself places it in that case (by the old ship's last pose, no split link), without the old ship's speed, and one line a minute goes to the log. A bug of Oritech Sable Compat; Optimize only steps in when the old ship is already gone. Self testsablespliton a real Sable: guard off throws the crash's exception, guard on returns with the piece in place. - A stuck server no longer hangs forever in its own crash report (
watchdogHaltSeconds, 60; dedicated server): the same evening a tick stood still for 120 s, the watchdog decided to shut the server down and then hung while it filled the crash report - no report, no thread dump, the server had to be killed by hand. Now the watchdog's thread dump goes to the log at once (so the cause is known even if the report never comes), and if the report is not done within 60 s the process is halted so the panel starts it again. 0 = vanilla. Test:tools/itest/watchdog.mjs(a dev server with a 5 s tick limit and the server thread held for 20 s).
This mod has no additional files