Elytra Optimizer
A mod that aims to fix slow chunk generation while using elytra.
📖About Elytra Optimizer
Why Elytra Optimizer?
Large multiplayer servers often stall when several players fly with elytra. Those stutters are the server choking on sudden chunk requests. Elytra Optimizer is a conservative Fabric server mod that smooths those bursts without changing gameplay.
How it works
- Detects players in elytra flight with a safe speed threshold.
- Predicts chunks ahead using an adaptive cone (45° when turning, narrows to 5° during straight flight—up to 80% fewer chunks loaded on long journeys).
- Issues short-lived chunk tickets so those chunks load gradually instead of all at once.
- Automatically throttles predictions when MSPT exceeds 40ms, disables entirely above 50ms.
- Pauses when memory usage exceeds 75% to prevent out-of-memory issues.
- Auto-enables "Lite mode" on servers with less than 2GB RAM (reduced cone, fewer chunks, lower limits).
- Skips chunks that are already loaded—no wasted work.
- Falls back to vanilla instantly if anything misbehaves.
Compatibility
Plays nicely with the Fabric optimization stack: C2ME, Lithium, Starlight, FerriteCore, Krypton, ModernFix, Noisium. Detects and supports modded flight from Origins, Create, Colytra, Trinkets, Curios, and Caelus API.
Commands
/eo stats— TPS, memory, flying players, active tickets at a glance. Shows active modes (Lite, Conservative) and warns when resources are low./eo toggle— disable without restart when things get busy./eo debug— per-player flight details: straight-flight distance, current cone angle, ticket count./eo reload— re-detect installed mods after changes.
Technical details
Uses primitive collections (fastutil), pre-computed trig tables, squared distance comparisons, and thread-local buffers. Targets under 50 microseconds per player per tick with zero GC pressure. Tickets expire after 5 seconds; stale tickets are cleaned up immediately on direction changes.
Dependencies
- Fabric API
All logic runs server-side (works in singleplayer too because it's just an integrated server). Players don't need the mod installed. Minimal config, fewer lag spikes when everyone takes to the skies.