Faster Random 已于 2025-12-27 归档,且已超过一年未进行公开更新。
这是因为我在听闻和实际体验中收到了太多关于该模组性能的矛盾反馈,因此认为不应依赖此模组。你所察觉到的任何性能提升可能仅仅是安慰剂效应(尤其是因为你的 JVM 可能会强制禁用该模组!),或者其对原版一致性的影响可能远超收益。
这源于一个事实:生成器只有在特定条件下才能显著优于 Minecraft 的原版生成器,而我认为随机函数的 CPU 占用时间不足以产生明显的性能提升。目前我确实无法判断这是否能让服务器在实质上运行得更快,我的系统瓶颈也可能让我无法准确得知结果。
建议仅在与之前使用 Faster Random 生成的世界配合使用时安装此模组,以保持一致性。这将提供唯一形式的支持。“部分”潜在的性能增益并不值得牺牲原版一致性。
简而言之:理论上,Faster Random 在纸面上速度更快,但这是情境相关的,且是我无法可靠测试的。
其他发现
奇怪的是,我之前发现 L64X128MixRandom 在重复构建时比基础原版 XoroShiro128++ 慢 2 倍的情况不再出现了。我不确定 JDK 是否在随时间改进了这一行为,但即使不考虑之前的因素,这种情况仍然是情境相关的(至少在玩家操作层面是这样)。
同样,这一发现远不足以让我相信这个模组实际上产生了任何作用。
2024 模组描述
Faster Random
Faster Random 是对 Minecraft 随机系统的重写,旨在使用 Java 17 引入的新 LXM 生成器,替换 Minecraft 中较慢的 CheckedRandom(及相关生成器)。大多数 JVM 默认应支持该生成器,但请检查日志中的任何警告!
这也修复了 MC-239059 “错误”(这对游戏影响不大,但仍然是一个错误。)
在大多数系统上(我仅参考我的 Linux AMD 系统),Faster Random 的生成器构建耗时更长,但生成数字的速度要快得多。由于 Minecraft 会重用许多生成器(从而避免了构建惩罚),性能提升可能会有很大差异。
性能可以通过 testmod 进行测试,它在运行时会对每种方法运行基准测试。
目前,Faster Random 针对的是较慢的随机生成器,从而在世界结构放置/生成、特征 + 雕刻器放置和生成以及大量客户端事物(如下落物品)方面带来性能提升。目前 Faster Random 尚未对较快的生成器做任何处理。(直到我确定它能显著提高性能且弊大于利为止)
你应该使用这个模组吗?
很可能 Faster Random 只能将世界生成性能提升到一定程度,因为你会很快遇到因存储在 RAM 中或写入磁盘的区块数量增加而导致的 RAM 和 I/O 瓶颈。 这并非坏事,这只是意味着你生成区块的速度超过了系统其余部分存储它们的速度。根据你的系统,效果可能大相径庭。
因此,当服务器线程受 CPU 瓶颈限制(单人游戏在内部服务器上运行),但同时拥有相当数量的快速内存和存储(DDR4 RAM,以及 SATA III 或更好的 HDD)时,此模组能提供最大的性能提升。
对于世界生成,Faster Random 几乎 是 1:1 还原,但某些洞穴形状会与原版不同。 其他一切均为 1:1。这些差异可能难以察觉,但不应用于对一致性敏感的事物,如速通。Optifine 的数学优化对世界生成的破坏性变化远大于 Faster Random。
Faster Random 不需要同时在客户端和服务端安装。Faster Random 可以在客户端提供小幅性能提升,因为那里仍有大量随机事件。
系统要求 (3.0.0+)
- 一个 完全支持 Java 17 新
RandomGenerator系统 的 JVM,以及配套的 LXM 生成器实现。(示例:GraalVM)。如果 JVM 不受支持,Faster Random 将被禁用, 并且你需要使用 Faster Random 1.6.0。如果你的 JVM 不支持这一点,那么它很可能不是一个好的 JVM。
(注意: 你可能在不知情的情况下为 Minecraft 使用了无头 JDK,这会因各种奇怪的原因导致 Faster Random 崩溃。如果 Faster Random 崩溃,请检查你是否下载了正确的 JDK/包。)
如果你使用的是正常的 Minecraft 启动器,此模组应与捆绑的 JVM 正常工作,如果日志中没有出现警告,你可以忽略这些说明。
与其他模组的配合使用
Faster Random 应该能与大量模组良好配合,尤其是在 4.0.0 之后。Faster Random 还将积极支持大多数主要的 worldgen 模组和 Distant Horizons。
得益于其他模组更好地利用 Minecraft 的多线程随机系统,Faster Random 还能与 Noisium 和 C2ME 等其他地形优化模组配合得更好。理想情况下, 你应该使用 Noisium + Faster Random,并在配合 Distant Horizons 使用时尽可能多地分配内存(10GB+)给 Minecraft(C2ME 在使用 DH 时会有性能损耗)。Faster Random 可以利用 Noisium 来减少世界生成的 CPU 占用。
Forge?
Francium 是适用于 1.16 和 1.18 版本的 非官方 Forge 变体,其功能主要与 Faster Random 相同,但 不包含世界生成优化。对于 1.20.1 版本及相关的 worldgen 更改,Sinytra Connector 应该能够以“足够稳定”的体验运行该模组。在 1.20.1+ 版本中,你可以尝试使用 NeoForge 移植版。
Faster Random 的图标遵循 CC-BY-SA 协议授权。代码遵循 Apache 2.0 协议授权。
喜欢这个模组吗?欢迎通过贡献代码、提交错误报告以及向他人推荐(这非常有帮助)来支持开发!
Faster Random has been archived as of 2025-12-27, and has not been publicly updated in over a year.
This is because I've both heard of and gotten far too many conflicting results about this mod's performance, and feel as though this mod should not be relied on as a result. Any performance gain you notice could potentially just be a placebo effect (especially since your JVM may force the mod to disable itself!), or may outweight the impacts to vanilla parity on your world.
This arises from the fact that the generator is dependent on specific conditions arising to noticably beat Minecraft's generators, and I don't think random functions occupy enough CPU time to make any increase apparent. I really don't have any idea of if this makes a big server run meaningfully faster or not at this point, and my system may be too bottlenecked to know.
Consider this to be only reccomended for use with worlds that previously were generated with Faster Random, to keep parity. This will be the only form of support provided. The potential for 'some' gain isn't really worth losing vanilla parity.
TL:DR: On paper, Faster Random is faster in theory, but this is situational, and something that I haven't been able to reliably test.
Additional Findings
Oddly enough, my old findings of L64X128MixRandom being 2x slower than base, vanilla XoroShiro128++ on repeat constructions are not showing up anymore. I'm not sure if JDK's improved on this behaviour over time, but it is still situational (at the level of the player's actions, at least) even without the prior consideration.
Again, this finding is nowhere near enough to convince me that this mod is actually doing anything.
2024 Mod Description
Faster Random
Faster Random is a rewrite of Minecraft's random systems to use the new LXM generators introduced in Java 17, instead of the slower CheckedRandom (and related generators) within Minecraft. Most JVM's should support the generator by default, but check your logs for any warnings!
This also patches the MC-239059 "bug"(which doesn't have much of an effect on the game, but is still a bug.)
Faster Random's generators take more time to construct on most systems (I only have my Linux AMD system to go off of), but are much faster to generate numbers. Since minecraft re-uses many generators (meaning the construction penalty is avoided), the performance gain can vary largely.
Performance can be tested via the testmod, which runs a benchmark against each method when run.
Currently, Faster Random targets the slower random generators, which creates a performance boost with world structure placement/generation, and feature + carver placement and generation, alongside a lot of client-side things like dropped items. Currently Faster Random does not do anything to the faster generators yet. (Until I'm sure it'll improve performance noticably and not cause more harm than good)
Should you use this mod?
It's likely that Faster Random will only improve worldgen performance up to a certain extent, as you'll quickly hit a RAM and I/O bottleneck from the increased amount of chunks stored in RAM/being written to disk. This isn't a bad thing, this just means that you're generating chunks faster than the rest of your system can store them. Depending on your system, your mileage may vary greatly.
As a result, this mod provides the most performance in situations where the server thread(s) are CPU bottlenecked (singleplayer runs on an internal server), but have access to a decent amount of fast memory and storage (DDR4 RAM, and a SATA III or better HDD).
For world generation, Faster Random is almost 1:1, but some cave shapes will generate differently to Vanilla. Everything else is 1:1. It's likely that these differences will be unnoticiable, but shouldn't be used for parity-sensitive things like speedrunning. Optifine's math optimizations do far more damaging changes to worldgen than Faster Random.
Faster Random does not need to be on both the client and server. Faster Random can provide a small performance boost client-side, as quite a few things are still random there.
System Requirements (3.0.0+)
- A JVM that fully supports Java 17's new
RandomGeneratorsystem, and implementations of the LXM generators alongside it. (example: GraalVM). Having an unsupported JVM will disable Faster Random, and will require you to use Faster Random 1.6.0. If your JVM doesn't support this, chances are it's not a good JVM.
(Note: You may be unknowingly using a headless JDK for Minecraft, which breaks Faster Random due to a variety of strange reasons. Please check if you have downloaded the correct JDK/Package if Faster Random is crashing.)
If you're using the normal Minecraft Launcher, this mod should work fine with the bundled JVM, and you're free to ignore these instructions if no warning shows up in your logs.
Usage with other mods
Faster Random should work well with a large variety of mods, especially after 4.0.0. Faster Random will also actively support most major worldgen mods and Distant Horizons.
Faster Random also can perform better alongside other terrain optimization mods such as Noisium and C2ME, thanks to them making better leverage of Minecraft's random systems with multithreading. Ideally, you should use Noisium + Faster Random, and throw as much ram (10GB+) as you can spare at Minecraft when using Distant Horizons (C2ME has a performance hit with DH). Faster Random can leverage Noisium for a reduction in CPU usage from world generation.
Forge?
Francium is an unofficial forge variant for 1.16 and 1.18, which mostly does what Faster Random does, albeit without the worldgen optimizations. For 1.20.1 and these worldgen changes, Sinytra Connector should be able to run the mod with a "stable enough" experience. For 1.20.1+, you can try using the NeoForge port.
Faster Random's Icon is licensed under CC-BY-SA. Code is licensed under Apache 2.0.
Like this mod? Feel free to support development by contributing code, creating bug reports, and letting others know about it (it helps a lot)!
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Faster Random
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Faster Random 5.1.0
Faster Random 又迎来了一次更新!此次更新对 JVM 检查机制进行了全面重构,这得益于 Steveplays 的贡献。
现在,如果检测到当前使用的 JVM 不支持所需的随机数生成器,Faster Random 将自动禁用自身(并记录警告日志)。这可以防止在整合包中包含 Faster Random 且使用非常古老或无头版 JDK 运行时发生崩溃。
更新日志
合并了拉取请求 #56
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
缓冲的原始输入和线程化的事件轮询
评论 0
登录后参与评分
还没有评论,来抢沙发吧