
这是 Fabric 模组 tuxed 的 LazyDFU 的 Forge 移植版。
此移植已获得 MIT 许可权限的允许。
LazyDFU 是一款优化模组,它使 DataFixerUpper 的初始化过程变得“惰性”——也就是说,在真正需要之前,它不会立即创建将数据从旧版 Minecraft 迁移到新版所需的规则。它不修改 DFU,因此是安全的,但仍建议保持比平常更多的谨慎。
LazyDFU 的基本原理很简单:大多数时候,你并不需要为游戏的每个版本转换数据。因此,DFU 规则的编译会被推迟到游戏已经启动并运行时进行。这意味着如果 LazyDFU 强制游戏编译迁移规则,你可能会看到卡顿峰值,但一旦完成,就不会有性能损失。
证明给我看
我录制了一段视频,展示 LazyDFU 的效果有多显著。
与其他模组的对比
Cadmium
LazyDFU 与 Cadmium 相辅相成。虽然 Cadmium 解决了问题的根源(规则优化缓慢),但它只能部分改善状况。LazyDFU 通过将 DFU 规则的初始编译推迟到需要时再进行,仍然非常有效,从而使游戏启动速度大大加快。
Smooth Boot
LazyDFU 采用了与 Smooth Boot 类似的实现方法:这两个模组都试图不修改 DFU。然而,LazyDFU 优于 Smooth Boot,因为它根本不编译 DFU 规则,而这正是游戏启动过程中最耗时的部分。
相比之下,Smooth Boot 会限制编译 DFU 规则的线程数量,并以较低的优先级运行它们。
任何移除 DFU 的模组
移除 DFU 的模组从根本上是不安全的。如果你使用其中一个加载旧世界,它将损坏该世界。有些模组有防护措施,但即便如此,这也不能保证你不会遇到问题。
相比之下,使用 LazyDFU 你只会经历一次严重的卡顿峰值,这远比完全毁坏的世界要好得多。因此,请优先选择 LazyDFU 而不是 DataBreaker :)

This is a Forge port of the fabric mod: LazyDFU by tuxed.
This is a port allowed by the permissions of the MIT License.
LazyDFU is an optimization mod that makes the initialization of DataFixerUpper "lazy" - that is, it will not immediately create the rules required to migrate data from older versions of Minecraft to newer versions until it actually needs to do so. It does not modify DFU and should be safe, but do exercise more than the usual caution.
The premise of LazyDFU is simple: most of the time, you will not need to convert data for every version of the game. As a result, DFU rule compilation occurs later, when the game is already up and running. This means it is possible you may see lag spikes if LazyDFU forces the game to compile migration rules, but once complete there is no performance penalty.
Prove it to me
I recorded a video that shows you how effective LazyDFU is.
Comparing it to other mods
Cadmium
LazyDFU is complementary to Cadmium. While Cadmium tackles the root source of the problem (rule optimization being slow), it only partially improves the situation. LazyDFU will still be highly effective by deferring the initial compilation of DFU rules until needed, so the game will start up much more quickly.
Smooth Boot
LazyDFU takes a similar implementation approach to Smooth Boot: both mods do not try to modify DFU. However, LazyDFU is superior to Smooth Boot as it does not compile DFU rules at all, which is the most expensive part of the game startup process.
In comparison, Smooth Boot will instead limit the number of threads that compile DFU rules and run them at a lower priority.
Any mods that remove DFU
Mods that remove DFU are fundamentally unsafe. If you load an older world with one of them then it will corrupt that world. Some have safeguards, but even then this is not a guarantee that you won't have issues.
In comparison, with LazyDFU you may experience a nasty lag spike instead, which is vastly superior to having a completely hosed world. So prefer LazyDFU over DataBreaker :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧