STYGION Optimize 0.4.8 (beta) for 1.21.1 NeoForge
Curse Maven Snippet
What's new
A player can no longer get stuck unable to pick up items or sleep after another mod crashed their tick. Less work in every tick of a world with many loaded chunks (found in the live profile of STYGION MC on 17. 11. 2026, a world with many chunk loaders), and claim protection for two more mods.
Players are never left half frozen by Neruina (
neruinaResumePlayersOnLogin, on): when a player's tick throws, Neruina kicks the player and saves an "errored" mark with them; while it is there Neruina runs only the player's base tick, so items and XP orbs are not picked up, sleeping never skips the night ("0/1 players sleeping"), other mods' player tick events do not run and health and XP are not sent to the game. Rejoining did not clear it, only/neruina resume entity <player>. Now the mark is cleared when the player joins (the same call as that command), with one WARN line in the log; if the error is still there, Neruina kicks the player again and says why. Neruina's own design, a trap for players. Without Neruina nothing happens. (STYGION MC, 16.-17. 11. 2026.)A player's tick waits for a chunk at most 20 ticks in a row (
playersDontWaitForChunks): our bug since 0.3.1, the wait had no end, so a player next to a chunk that never loaded would lose every tick (no pickup, no sleep, no player tick events). Now after 20 ticks the player ticks as in vanilla until the chunks around them are loaded again.Ticking chunks reused while nothing changes (
tickingChunkWalkCache, on): every tick the game walks every loaded chunk of a world to find the ones that tick. With many chunk loaders that is tens of thousands of chunks for a few thousand ticking ones. The ticking chunks found by the last full walk are now reused, in the same order, as long as no chunk of that world was loaded, unloaded or changed its ticking state since; any such change makes the next tick walk all of them again. Every 20th tick still walks them all and compares; should the two ever differ, the reuse switches itself off for that world and says so in the log. Same chunks, same order, same random numbers as without it. Tested on a server with 12 forced chunks far apart, changed every 30 ticks for 600 ticks and then left alone for 200, checked against a full walk every other tick: 342 checks, no difference; a full walk of 9 589 loaded chunks 0.50 ms, the same ticking chunks reused 0.002 ms.Cable Facades data at hand (
cableFacadesDataCache, on): Cable Facades 2.1.4 looks up its saved facade data in the world's data storage on every shape, collision, light and redstone question about any block - thousands of times a tick wherever mobs move. The world now keeps the data object it got the first time; the facades are read exactly as before. Tested with Cable Facades 2.1.4 on 256 blocks (43 with a facade): shapes, collision shapes and facade data identical with the switch off and on; 200 000 collision questions 13.9 ms before, 10.0 ms after.TFMG checks only ticking chunks (
tfmgTickingChunks, on): TFMG walks every loaded chunk of a world after every tick to drop fluid reservoirs that ran dry in ticking chunks. It now walks the chunks the game found ticking in the same tick and makes its own checks on each, as before; a chunk that starts ticking later within that tick is checked one tick later. This was half ofsharedTickingChunkLoop, which stays off and now covers only Snow Under Trees. Tested with TFMG 1.3.3a: the chunks it walks are the same set as the ticking chunks of a full walk; its handler 0.022 ms a tick before, 0.001 ms after (1 193 loaded chunks; the saving grows with their number).Claim protection with Chisels & Bits and Create Big Cannons (
chiselsAndBitsClaimGuard,cannonClaimGuard): both are now on by default, and both protect more: a claim of another team keeps its blocks against Create Big Cannons' shells, shots and impacts (including the block changes around an impact) and against Chisels & Bits - areas that reach across a claim border, patterns, chiseled blocks, the wrench, and undo or redo of an earlier change. The team, its members and allies work as before, unclaimed land too, and a cannon standing in a claim fires out of it as before. Explosion rules are FTB Chunks' own (a team that allows explosions in its claims allows these too). Tested on a server with Create Big Cannons 5.11.7, Chisels & Bits 21.1.40 and FTB Chunks 2101.1.24: real HE shells and solid shots into a claim (blocks changed: 24 and 12 with the switch off, 0 and 0 with it on) and out of one (29 and 10 with it on); a team with an owner, a member and an ally against a stranger: chisel, an area across the border, wrench, pattern, chiseled block and undo - the team works, the stranger does not.
Česky (0.4.8)
- Tikající chunky znovu, dokud se nic nezmění (
tickingChunkWalkCache, zapnuto): hra každý tick projde všechny načtené chunky světa, aby našla ty, které tikají. S mnoha chunk loadery jsou to desítky tisíc chunků kvůli několika tisícům tikajících. Tikající chunky z posledního úplného průchodu se teď použijí znovu, ve stejném pořadí, dokud se v tom světě žádný chunk nenačetl, nevyložil ani nezměnil, jestli tiká; každá taková změna znamená v dalším ticku zase úplný průchod. Každý 20. tick se i tak projde všechno a porovná; kdyby se to někdy lišilo, opětovné použití se pro ten svět samo vypne a řekne to v logu. Stejné chunky, stejné pořadí, stejná náhodná čísla jako bez toho. Ověřeno na serveru s 12 vynucenými chunky daleko od sebe, měněnými každých 30 ticků po 600 ticků a pak 200 ticků beze změny, s porovnáním s úplným průchodem každý druhý tick: 342 kontrol, žádný rozdíl; úplný průchod 9 589 načtených chunků 0,50 ms, znovu použité tikající chunky 0,002 ms. - Data Cable Facades po ruce (
cableFacadesDataCache, zapnuto): Cable Facades 2.1.4 hledá svá uložená data fasád v úložišti světa při každém dotazu na tvar, kolizi, světlo a redstone jakéhokoli bloku - tisíckrát za tick všude, kde se hýbou moby. Svět si teď drží objekt dat z první odpovědi; fasády se čtou přesně jako dřív. Ověřeno s Cable Facades 2.1.4 na 256 blocích (43 s fasádou): tvary, kolize i data fasád stejné vypnuto i zapnuto; 200 000 dotazů na kolizi 13,9 ms před, 10,0 ms po. - TFMG kontroluje jen tikající chunky (
tfmgTickingChunks, zapnuto): TFMG po každém ticku projde všechny načtené chunky světa, aby zrušil vyčerpané nádrže kapalin v tikajících chuncích. Teď projde chunky, které hra ve stejném ticku našla tikající, a na každém dělá své kontroly jako dřív; chunk, který začne tikat později v tom ticku, přijde na řadu o tick později. Byla to polovinasharedTickingChunkLoop, který zůstává vypnutý a teď platí jen pro Snow Under Trees. Ověřeno s TFMG 1.3.3a: projde stejnou množinu chunků jako tikající chunky úplného průchodu; jeho obsluha 0,022 ms za tick před, 0,001 ms po (1 193 načtených chunků; úspora roste s jejich počtem). - Ochrana claimů s Chisels & Bits a Create Big Cannons (
chiselsAndBitsClaimGuard,cannonClaimGuard): obě jsou teď výchozí zapnuté a chrání víc: claim jiného týmu si drží bloky proti střelám, projektilům a dopadům Create Big Cannons (i proti změnám bloků kolem dopadu) a proti Chisels & Bits - oblastem přes hranici claimu, vzorům, chiseled blokům, klíči a vrácení nebo zopakování dřívější změny (undo, redo). Tým, jeho členové a spojenci fungují jako dřív, nezabraná země taky, a dělo stojící v claimu z něj střílí jako dřív. Pravidla výbuchů jsou vlastní pravidla FTB Chunks (tým, který v claimech výbuchy povolí, povolí i tyhle). Ověřeno na serveru s Create Big Cannons 5.11.7, Chisels & Bits 21.1.40 a FTB Chunks 2101.1.24: skutečné HE střely a plné projektily do claimu (změněné bloky: 24 a 12 s vypnutým přepínačem, 0 a 0 se zapnutým) a z něj ven (29 a 10 se zapnutým); tým s vlastníkem, členem a spojencem proti cizímu hráči: dláto, oblast přes hranici, klíč, vzor, chiseled blok a undo - tým může, cizí ne.
This mod has no additional files