
ParityFast 是一款面向 Minecraft 1.14.4 的轻量级 Fabric 优化模组。
它针对数学、随机数生成、查找及位置相关代码所使用的特定原版辅助路径进行了优化。该模组旨在保持与原版兼容的行为,同时降低特定热点路径上的开销。
ParityFast 并不声称能改善所有服务器、世界或工作负载。性能影响取决于世界类型、实体数量、刻负载、已安装的模组、JVM 以及硬件配置。
优化领域
ParityFast 目前针对以下方面:
MathHelper 的正弦/余弦查找行为,已通过验证确保与原版的表格数值一致
- 选定的精确辅助方法,如 floor、ceil、sqrt、abs、clamp、lerp、wrapping、angle、color、hash 以及二分查找辅助方法
- 选定的
BlockPos 编解码及偏移辅助路径
- 选定的方向查找辅助方法
- 随机处理路径,在适用情况下保留原版的序列行为
- 用于实体刻、区块票证及方块邻居检查的缓存枚举/列表/哈希查找
基准测试
这些基准测试展示了一种合成压力场景的结果,而非一般性的性能保证。
测试环境为超平坦世界,实体数量较高(约 200 个),开启随机刻,并使用 /gamerule randomTickSpeed 5000。使用 Carpet 的 /tick health 命令进行测试。
| 指标 |
原版 |
ParityFast |
差异 |
| 平均 MSPT |
48.46ms |
39.97ms |
-17.5% |
| 方块刻耗时 |
20.90ms |
12.97ms |
-37.9% |
| 实体刻耗时 |
15.55ms |
15.83ms |
基本无变化 |
结果可能因工作负载、硬件、JVM 设置及其他已安装模组的不同而有所差异。
测试环境
- Minecraft 1.14.4
- Fabric
- Ryzen 9 9950X3D
原版兼容性
ParityFast 保留了 Java Random 的原版 48 位 LCG(线性同余生成器)算法,而不是切换到 Java 17 的 LXM 或 SplitMix 算法。在可能的情况下,它会复制现有的随机种子并从相同状态继续运行。

ParityFast is a lightweight Fabric optimization mod for Minecraft 1.14.4.
It optimizes selected vanilla helper paths used by math, random, lookup, and position-related code. The mod is designed to preserve vanilla-compatible behavior while reducing overhead in specific hot paths.
ParityFast does not claim to improve every server, every world, or every workload. Performance impact depends on the world, entity count, tick load, installed mods, JVM, and hardware.
Optimized Areas
ParityFast currently targets:
MathHelper sine/cosine lookup behavior verified against vanilla table values
- Selected exact helper methods such as floor, ceil, sqrt, abs, clamp, lerp, wrapping, angle, color, hash, and binary-search helpers
- Selected
BlockPos encode/decode and offset helper paths
- Selected direction lookup helpers
- Random handling paths designed to preserve vanilla sequence behavior where applicable
- Cached enum/list/hash lookups used by entity ticking, chunk tickets, and block-neighbor checks
Benchmarks
These benchmarks show one synthetic stress scenario, not a general performance guarantee.
Tested on a superflat world with a high entity count (roughly 200), active random ticking, and /gamerule randomTickSpeed 5000. Tested using Carpet /tick health.
| Metric |
Vanilla |
ParityFast |
Difference |
| Avg MSPT |
48.46ms |
39.97ms |
-17.5% |
| Block Tick Time |
20.90ms |
12.97ms |
-37.9% |
| Entity Tick Time |
15.55ms |
15.83ms |
roughly unchanged |
Results may vary depending on workload, hardware, JVM settings, and other installed mods.
Test Environment
- Minecraft 1.14.4
- Fabric
- Ryzen 9 9950X3D
Vanilla Parity
ParityFast keeps Java Random's vanilla 48-bit LCG algorithm instead of switching to Java 17 LXM or SplitMix. When possible, it copies the existing random seed and continues from the same state.
评论 0
登录后参与评分
还没有评论,来抢沙发吧