Ferrite
一款针对 Minecraft 26.3 (Fabric, JDK 25) 的性能优化模组。Java 负责集成与 Mixin,而原生的 Rust 代码承担每刻(tick)繁重的数学运算,跨越 JNI 边界所带来的性能收益切实显著。兼容服务端:安装到服务器即可,玩家无需安装。
核心数据,均基于真实世界测试得出:
- 实体拥挤优化(默认开启):在堆积超过 1000 只生物时,实体 Tick 时间减少约 65%。采用逐位一致的原版推挤算法。
- 红石系统(
/ferrite redstone ac on):结合 Alternate Current 算法与 Rust BFS 内核。一台原本在原版下仅能维持 1.4-1.8 TPS 的卡顿机器,恢复至稳定的 20.00 TPS。在超过 150,000 次 Oracle 检查中零偏差。默认关闭,以确保按原版更新顺序调制的装置仍能正常工作。
- 漏斗机制(默认开启):抽取循环跳过已排空的槽位,对于部分取空的箱子可节省高达 ~85% 的计算量。可选的“漏斗高速公路”功能可将存储系统的链式吞吐量提升约 3 倍。
- 抑制闲置告示牌与熔炉的 Tick(默认开启):大规模下区块实体 Tick 时间减少约 70%,具备自愈能力且安全支持模组子类。
- 预生成与预测性强制加载区块(可选):以 90-118 个区块/秒的速度进行带断点续传的出生点预生成,并通过一个引导飞行路径的生成环,让你永远看不到地形加载的过程。
世界生成相关的数学计算(噪声、生物群系、密度函数)已逐位移植并经过验证;在 26.2 版本中,所有 63 项噪声和 50 项密度函数的比对检查均已通过。
该模组每 5 秒记录一次你的 Tick 时间分布情况,以便优化真正瓶颈所在。可通过 /ferrite log monitors off 随时关闭运行时日志。
依赖要求
- Minecraft 26.2(也可作为旧版发布获取 26.1.2 和 1.21.11 构建版本)
- Java 25,Fabric Loader 0.19.3+,Fabric API 0.154.2+26.2
- 支持单人游戏与多人联机
平台支持
原生库打包支持 Windows x86_64、Linux x86_64、Linux aarch64(在 Raspberry Pi 4B 上未完全测试)以及 macOS(通用)。如果原生库加载失败,Ferrite 会自动回退至原版行为:不会崩溃,也不会损坏存档。
如何协助开发
使用 mob 农场或人口密集的世界游玩至少 10 分钟,在 latest.log 中搜索 [ferrite],并将包含 [cramming-dispatch] 和 [entity-tick] 的行提交至 GitHub Issue。来自低配硬件的报告尤其有价值。
完整的测量表格、方法论及源代码请见:github.com/VoiceLessQ/Ferrite
致谢
MIT 许可。
Ferrite
A performance mod for Minecraft 26.3 (Fabric, JDK 25). Java handles integration and mixins; native Rust does the heavy per-tick math where crossing the JNI boundary actually pays. Server-side compatible: install on a server, players don't need it.
Headline numbers, all measured on real worlds:
- Cramming (default on): ~65% entity-tick reduction at 1000+ packed mobs. Bit-for-bit vanilla push math.
- Redstone (
/ferrite redstone ac on): Alternate Current algorithm plus a Rust BFS kernel. A lag machine that held vanilla at 1.4-1.8 TPS recovered to a flat 20.00 TPS. Zero mismatches across 150,000+ oracle checks. Off by default so contraptions tuned to vanilla update order keep working.
- Hoppers (default on): extract loops skip drained slots, up to ~85% cheaper on partially-emptied chests. Opt-in hopper highway multiplies chain throughput ~3x for storage systems.
- Idle sign and furnace tickers suppressed (default on): ~70% block-entity tick reduction at scale, self-healing, mod-subclass safe.
- Pre-gen and predictive chunk forcing (opt-in): 90-118 chunks/s spawn pre-generation with resume, and a generation ring that leads your flight path so you never see terrain loading.
Worldgen math (noise, biomes, density functions) is ported bit-exact and validated every release; parity checks run 63/63 noise and 50/50 density on 26.2.
Every 5 seconds the mod logs where your tick time goes, so optimization targets real bottlenecks. Runtime toggle: /ferrite log monitors off.
Requirements
- Minecraft 26.2 (26.1.2 and 1.21.11 builds available as older releases)
- Java 25, Fabric Loader 0.19.3+, Fabric API 0.154.2+26.2
- Singleplayer and multiplayer
Platforms
Natives bundled for Windows x86_64, Linux x86_64, Linux aarch64 (Not fully tested on a Raspberry Pi 4B), and macOS (universal). If the native fails to load, Ferrite falls back to vanilla behavior automatically: no crashes, no broken worlds.
How to help
Play 10+ minutes with mob farms or crowded worlds, search latest.log for [ferrite], and share the [cramming-dispatch] and [entity-tick] lines in a GitHub issue. Low-end hardware reports are especially useful.
Full measurement tables, methodology, and source: github.com/VoiceLessQ/Ferrite
Credits
MIT licensed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧