跳到正文

ParityFast

Vanilla parity math, random, and lookup optimizations aimed to increase server performance

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Parity Fast Logo

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.

常见问题

ParityFast 支持哪些 Minecraft 版本?

ParityFast 支持 Minecraft Java 版 1.14.4,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

ParityFast 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

assemblycsharp 的其他作品

查看全部 →