跳到正文

JujutsuCraft Fix

作者:Xopi

Server performance addon for JujutsuCraft: same moves and gameplay, less server lag per tick (does not improve FPS).

收藏

介绍

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

A server performance addon for JujutsuCraft. Same moves, same mechanics, same visuals: the server just does less work to run them.

What it does

JujutsuCraft runs a lot of work on every tick: thousands of text commands to spawn particles and place blocks, repeated data lookups, and block-by-block scans for domains and destruction. This addon makes that work cheaper without changing what it does:

  • Internal commands (particles, effects, block placement, entity data) are executed directly instead of being parsed by Minecraft’s command system every time.
  • Particle bursts are sent to players in grouped network packets.
  • Domain and destruction procedures stop re-reading the same blocks, chunks and values.
  • Repeated lookups (identifiers, entity data, player variables) are cached or done once.

Results

Measured by replaying all 196 moves of every JujutsuCraft mob, 3 times each, with and without the addon:

Scenario Server time per tick
Moves cast by mobs -28% (1.41 ms → 1.01 ms)
Moves cast by a player -14% (2.57 ms → 2.22 ms)
Lag spikes over 50 ms about half as many

Every move behaves the same with and without the addon: same outcome, same blocks destroyed. Automated in-game tests also compare each optimized command with Minecraft’s own result.

What to expect: the gain shows on busy servers, with many players and fights at once. In singleplayer the server is usually far from its limit, so you won’t notice a difference.

This addon does not improve FPS. It only reduces server-side work (TPS / MSPT).

Configuration

Every optimization can be turned off in config/jujutsucraft_fix-common.toml.

Server operators can compare live, without restarting:

  • /jjfix optimizations off: all optimizations off (original JujutsuCraft)
  • /jjfix optimizations on: all optimizations on
  • /jjfix optimizations config: back to the config file
  • /jjfix optimizations: show the state of each optimization

Compatibility

Not tested with other JujutsuCraft addons yet. It should work alongside most mods, but an addon that modifies the same parts of JujutsuCraft’s code could conflict. If you hit a crash or odd behavior, please report it with your mod list.

常见问题

JujutsuCraft Fix 支持哪些 Minecraft 版本?

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

JujutsuCraft Fix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Xopi 的其他作品

查看全部 →