为什么选择 Elytra Optimizer?
大型多人服务器在多名玩家同时使用鞘翅飞行时,常常会出现卡顿。这些卡顿源于服务器因突然的大量区块请求而超负荷。Elytra Optimizer 是一款保守的 Fabric 服务端模组,它能在不改变游戏玩法的前提下平滑这些性能峰值。
工作原理
- 通过安全的速度阈值检测正在使用鞘翅飞行的玩家。
- 使用自适应锥形区域预测前方区块(转弯时为 45°,直线飞行时收窄至 5°——在长途旅行中可减少高达 80% 的加载区块)。
- 发出短时有效的区块票据(chunk tickets),使区块逐步加载而非一次性全部加载。
- 当 MSPT(每刻服务器时间)超过 40ms 时自动降低预测频率,超过 50ms 时完全禁用。
- 当内存使用率超过 75% 时暂停运行,以防止内存溢出问题。
- 在服务器内存小于 2GB 时自动启用“Lite 模式”(缩小锥形区域、减少区块数量、降低各项限制)。
- 跳过已加载的区块——避免无谓的工作消耗。
- 如果发生任何异常,立即回退到原版行为。
兼容性
与 Fabric 优化套件完美配合:C2ME、Lithium、Starlight、FerriteCore、Krypton、ModernFix、Noisium。检测并支持来自 Origins、Create、Colytra、Trinkets、Curios 和 Caelus API 的模组飞行功能。
命令
/eo stats — 一目了然地显示 TPS、内存、飞行中的玩家数量以及当前活跃的票据数。显示当前运行的模式(Lite、Conservative),并在资源不足时发出警告。
/eo toggle — 在不重启服务器的情况下禁用模组,适用于服务器繁忙时段。
/eo debug — 显示每位玩家的飞行详细信息:直线飞行距离、当前锥形角度、票据数量。
/eo reload — 在模组变更重新检测已安装的模组。
技术细节
使用原始集合(fastutil)、预计算的三角函数表、平方距离比较以及线程局部缓冲区。目标是每刻每个玩家的计算耗时低于 50 微秒,且零 GC 压力。票据在 5 秒后过期;方向改变时,过时票据会立即清理。
依赖项
所有逻辑均在服务端运行(单人游戏也适用,因为它本质上只是一个集成服务器)。玩家无需安装该模组。配置极简,全员起飞时卡顿大幅减少。
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
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧