Back to mods
STYGION Optimize project artwork

CurseForge · Minecraft mod

STYGION Optimize

Lag fixes from a busy Create server: autosave off the main thread, guards against watchdog crashes, fixes between mods. Same results, every fix has a switch.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which STYGION Optimize release matches 1.21.1 NeoForge?

Updated 2 days ago
beta file STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge
Game version 1.21.1
Loader NeoForge

STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is STYGION Optimize required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge need?

STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge on 1.21.1 NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add STYGION Optimize without breaking your instance.

Built for STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge on 1.21.1 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside STYGION Optimize 0.5.3 (beta) for 1.21.1 NeoForge. It opens that exact file at the source.

About this project

What does STYGION Optimize add?

STYGION Optimize: a tick's 50 milliseconds as a bar, with the work that left the main thread lifted out of it.

STYGION Optimize is the pile of small fixes we wrote while chasing lag on STYGION MC, a busy server on a big Create and Sable modpack. Each one changes how fast something is worked out, never what the result is, and each one has its own switch. The few that do change behaviour a little are off until you turn them on.

Autosave without the freeze

  • Player data, statistics and advancements are still collected on the main thread, but compressed and written on a background thread. Files go through a temporary file and a rename, so a crash never leaves half a file. (asyncPlayerFiles)
  • Advancements are not written again when nothing changed. (skipUnchangedAdvancements)
  • With Sable, the disk sync of ship storage runs in the background instead of stalling the tick. (sableAsyncSync)
  • One log line per autosave says what it cost the main thread, so you can see the difference yourself. (logAutosaveOverMs)

A cheaper tick

  • Light without the big copies. After every batch of light changes the game copies the light map of every loaded section. Here a copy shares every part that did not change, so it costs kilobytes instead of megabytes. Light values stay exactly the same. (lightSectionsCopyOnWrite)
  • Advancements. A changed inventory slot tests only the criteria that can match the changed item, instead of every recipe of every mod. (inventoryTriggerIndex)
  • Spawning and pathfinding. The biome is read directly where it cannot change, and a path search stops rebuilding the same empty chunk. Same mobs, same paths. (spawnBiomeShortcut, pathfindingEmptyChunkReuse)
  • Movement. The scan for fire and lava after every move is skipped when it cannot change anything. (fireCheckSkip)

Guards against a frozen server

  • A single move of millions of blocks, or one that is not a number at all, is dropped before block collision walks every chunk on the way and the watchdog kills the server. No real move comes near the limit. (movementGuard)
  • With Sable, a teleport into a ship's plot lands where that block of the ship is in the world now, so sleeping and respawning on a ship work. (sablePlotGuard)
  • With Better Chunk Loading, a player leaving no longer crashes the server over a chunk that is already gone. (betterChunkLoadingLogoutFix)

Fixes between other mods

We found these while profiling. The mods are fine pieces of work and these are timing cases that only show on a big, busy server.

  • Carry On: players are no longer disconnected with "Failed to encode packet" when somebody comes into view. (carryOnSyncSnapshot)
  • Sable: a block changing at the edge of the loaded world no longer loads the neighbouring chunk on the main thread, and a growing ship rebuilds only the part you changed at once. (sableNoSyncChunkLoads, sableResizeBuild)
  • Explorer's Compass: a structure search no longer makes the main thread wait for a far chunk to generate. (structureSearchAsyncChunks)
  • Ad Astra, ParCool x Sable, NTGL: answers that were worked out again every tick are remembered. (adAstraPlanetCache, parcoolSableMethodCache, ntglIdleSyncSkip)

Off until you turn them on

  • Far mobs think less often. They still move, run their current goals and despawn every tick. Mobs with a target, named, tamed, ridden or on a ship always think. (farMobAi)
  • Brainless farm mobs. Mobs from a spawner a player placed skip their whole AI but keep gravity, water push, knockback, drops and experience, so farms work as before at a fraction of the cost. Dungeon spawners stay dangerous. (spawnerFarmMobs)
  • A player waits, not the server. A player whose own chunk is not loaded yet pauses alone until it is there. (playersDontWaitForChunks)

Every fix has a switch

Every fix in STYGION Optimize as a switch with its config name and its default, grouped as in the config file.

Everything is in config/stygion_optimize-common.toml, and the file reloads while the server runs, so you can compare before and after in one session. At load the log lists what is on. Blocks of mods you removed can load as vanilla blocks instead of air: that list is in config/stygion_optimize-startup.toml.

Requirements

Minecraft 1.21.1, NeoForge, Java 21
Side Server, client or both
Needs Nothing. The parts for Sable, Carry On, Ad Astra and the others do nothing when that mod is not installed

What it reads and sends

It sends nothing anywhere: no network connections, no telemetry, no update check. It reads and writes only the world and player files Minecraft itself uses, and its two config files.

Thank you to the authors of the mods named above. We touch them only where our profiler pointed and leave their logic alone. If you are one of them and want something changed or removed, tell us on Discord and we will.


All Rights Reserved. Use it on your server or in your modpack as CurseForge's terms allow.

More: stygion.eu · Discord: stygion.eu/discord

Play it with us on STYGION MC, mc.stygion.eu.

Need a crash traced, a pack built or a mod made for your own server? We take custom work.

Project description from CurseForge.

Pick your setup

STYGION Optimize by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

STYGION Optimize versions and loaders

10 of 10 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.