Fast Noise 是一款现代化的优化模组,旨在提升世界生成速度。我会定期将该模组更新到最新的 Minecraft 版本,持续改进模组功能,并提供稳定版本。
该模组会改变世界生成吗? 该模组保持 原版一致性(vanilla parity),包括与任何数据包兼容。请注意,原版非确定性行为 仍然存在。
我可以将此模组与自定义世界生成模组一起使用吗? 可以。我尽力维持模组兼容性,仅修改安全的代码。可能影响模组兼容性的特定优化默认情况下处于禁用状态。
FastNoise 是 Reverie Projects 的一部分,也欢迎查看我们的其他模组。
该模组的工作原理是什么?
Fast noise 通过优化区块存储方块和生物群系数据的过程,来加速世界生成的整个流程。
技术细节
Fast noise 替换了 NoiseChunkGenerator 中的 populateNoise 和 populateBiomes,以及 SurfaceBuilder 中的 surfaceBuilder。
Fast noise 通过对世界生成机制做出多项关键假设来实现性能优化。通过使用更快、更紧凑的计算方式替换原版用于数据存储的通用及调试代码,Fast noise 实现了更高的吞吐量。
实现这一目标的关键方法包括:减少内存分配、避免调色板调整大小、延迟/合并方块计数、预计算数据、缓存方块状态信息等。
速度有多快?
在 1.21.11 最新版本的 Minecraft 中,主世界的整体世界生成速度提升了约 10-18%。
下界和末地的提升幅度更大。
这里有一个 Jmh Benchmark 基准测试软件。
Chunky 基准测试
开启模组(12 线程)
[12:39:32] [Server thread/INFO]: [Chunky] Task finished for minecraft:overworld. Processed: 16641 chunks (100.00%), Total time: 0:01:37
未开启模组
[12:43:08] [Server thread/INFO]: [Chunky] Task finished for minecraft:overworld. Processed: 16641 chunks (100.00%), Total time: 0:01:47
开启模组(4 线程)
[12:56:23] [Server thread/INFO]: [Chunky] Task finished for minecraft:overworld. Processed: 9409 chunks (100.00%), Total time: 0:01:10
未开启模组
[13:01:11] [Server thread/INFO]: [Chunky] Task finished for minecraft:overworld. Processed: 9409 chunks (100.00%), Total time: 0:01:23
增大生成距离时: 未开启模组
[13:11:01] [Server thread/INFO]: [Chunky] Task finished for minecraft:overworld. Processed: 19881 chunks (100.00%), Total time: 0:02:43
开启模组
[13:16:03] [Server thread/INFO]: [Chunky] Task finished for minecraft:overworld. Processed: 19881 chunks (100.00%), Total time: 0:02:21
Jmh 基准测试
使用的模组:FastNoise 1.0.37+26.2,基于 26.2 版本
区块坐标:-16,-16 -> 16,16
末地区块坐标:112,112 -> 144,144
区块数量:1089
使用的模组:c2me-fabric-mc26.2-0.4.2-alpha.0.9.jar
Benchmark (worldName) Mode Cnt Score Error Units
BiomesBenchmark.biomegen overworld avgt 5 3058.005 ± 256.587 ms/op
BiomesBenchmark.biomegen nether avgt 5 188.188 ± 3.156 ms/op
BiomesBenchmark.biomegen end avgt 5 31.560 ± 4.200 ms/op
NoiseBenchmark.noisegen overworld avgt 5 12332.480 ± 364.223 ms/op
NoiseBenchmark.noisegen nether avgt 5 2447.385 ± 20.773 ms/op
NoiseBenchmark.noisegen end avgt 5 6420.598 ± 195.649 ms/op
SurfaceBenchmark.surface overworld avgt 5 14948.653 ± 333.900 ms/op
SurfaceBenchmark.surface nether avgt 5 9330.611 ± 243.701 ms/op
SurfaceBenchmark.surface end avgt 5 3485.872 ± 8.225 ms/op
Benchmark (worldName) Mode Cnt Score Error Units
BiomesBenchmark.biomegen overworld avgt 5 2980.699 ± 98.824 ms/op
BiomesBenchmark.biomegen nether avgt 5 177.827 ± 2.815 ms/op
BiomesBenchmark.biomegen end avgt 5 14.990 ± 0.575 ms/op
NoiseBenchmark.noisegen overworld avgt 5 9419.623 ± 317.746 ms/op
NoiseBenchmark.noisegen nether avgt 5 1253.599 ± 15.977 ms/op
NoiseBenchmark.noisegen end avgt 5 5424.879 ± 81.860 ms/op
SurfaceBenchmark.surface overworld avgt 5 10490.488 ± 901.258 ms/op
SurfaceBenchmark.surface nether avgt 5 3361.448 ± 53.809 ms/op
SurfaceBenchmark.surface end avgt 5 1.723 ± 0.289 ms/op
加速比:
| 阶段/维度 | 主世界 | 下界 | 末地 |
|---|---|---|---|
| 生物群系 | 1.025x | 1.058x | 2.105x |
| 噪声 | 1.309x | 1.952x | 1.183x |
| 地表结构 | 1.424x | 2.775x | 2023.14x |
旧版 Jmh 基准测试
使用的模组:Fast Noise 1.0.15+26.1,基于 26.1 snapshot-6
区块坐标:-16,-16 -> 16,16
末地区块坐标:112,112 -> 144,144
区块数量:1089
使用的模组:(c2me)
开启模组时:
基准测试 (世界名称) 模式 次数 得分 误差 单位
BiomesBenchmark.biomegen end avgt 5 11.786 ± 0.168 ms/op
BiomesBenchmark.biomegen nether avgt 5 174.833 ± 1.166 ms/op
BiomesBenchmark.biomegen overworld avgt 5 2401.797 ± 31.629 ms/op
NoiseBenchmark.noisegen end avgt 5 3052.242 ± 12.358 ms/op
NoiseBenchmark.noisegen nether avgt 5 1039.086 ± 6.467 ms/op
NoiseBenchmark.noisegen overworld avgt 5 8441.811 ± 41.396 ms/op
仅使用 c2me 时:
基准测试 (世界名称) 模式 次数 得分 误差 单位
BiomesBenchmark.biomegen end avgt 5 26.058 ± 0.245 ms/op
BiomesBenchmark.biomegen nether avgt 5 185.957 ± 2.203 ms/op
BiomesBenchmark.biomegen overworld avgt 5 2464.937 ± 29.007 ms/op
NoiseBenchmark.noisegen end avgt 5 3925.059 ± 14.292 ms/op
NoiseBenchmark.noisegen nether avgt 5 1920.705 ± 9.864 ms/op
NoiseBenchmark.noisegen overworld avgt 5 11552.674 ± 54.112 ms/op
原版:
基准测试 (世界名称) 模式 次数 得分 误差 单位
BiomesBenchmark.biomegen end avgt 5 27.051 ± 0.118 ms/op
BiomesBenchmark.biomegen nether avgt 5 239.634 ± 1.702 ms/op
BiomesBenchmark.biomegen overworld avgt 5 4589.322 ± 80.331 ms/op
NoiseBenchmark.noisegen end avgt 5 4477.113 ± 36.133 ms/op
NoiseBenchmark.noisegen nether avgt 5 1951.438 ± 5.748 ms/op
NoiseBenchmark.noisegen overworld avgt 5 14249.612 ± 57.388 ms/op
原版:
基准测试 (世界名称) 模式 次数 得分 误差 单位
SurfaceBenchmark.surface overworld avgt 5 5982.828 ± 17.992 ms/op
SurfaceBenchmark.surface nether avgt 5 2677.115 ± 9.293 ms/op
SurfaceBenchmark.surface end avgt 5 924.604 ± 5.376 ms/op
开启模组时:
基准测试 (世界名称) 模式 次数 得分 误差 单位
SurfaceBenchmark.surface overworld avgt 5 4820.672 ± 24.669 ms/op
SurfaceBenchmark.surface nether avgt 5 1914.289 ± 644.099 ms/op
SurfaceBenchmark.surface end avgt 5 0.014 ± 0.003 ms/op
加速比
主世界:生物群系:1.026倍 噪声:1.368倍 地表:1.241倍
下界:生物群系:1.063倍 噪声:1.847倍 地表:1.398倍
末地:生物群系:2.21倍 噪声:1.285倍 地表:66357倍
基准测试结果可能存在一定的不准确性。
社交渠道
常见问题与帮助
常见问题
问- 该模组将支持哪些 Minecraft 版本?
答- 我会尽量支持最新的 Minecraft 版本。
问- 有计划移植旧版本吗?
答- 没有计划移植旧版本,之前的旧版本移植只是一次性行为。
问- 我还需要安装其他模组或依赖项吗?
答- 不需要任何依赖项。
问- 会为 1.19.x 和 1.20.x 提供 Forge 移植版吗?
答- 暂无计划。
问- XYZ 模组在使用 Fast Noise 时崩溃或生成不正确怎么办?
答- 请在 Codeberg 或我的社交渠道上报此问题。
不兼容的模组
Moonrise 不兼容,因为它大幅更改了 Minecraft 内部机制。
Noisium 不兼容,因为 Fast Noise 旨在替代 Noisium。
Anti-Xray 目前不兼容,因为它需要在 Minecraft 方块存储中放入额外数据,这会破坏 Fast Noise。
致谢
- Stevenplays,开发了 noisium 模组,我在尝试将 noisium 移植到最新版 Minecraft 时开始开发 fast noise。
- Ishland,在模组开发、modern-yarn 和 neo-loom 方面提供的帮助。
Reverie Projects
考虑加入 Reverie Projects,以获取抢先体验和发展更新!加入后,您可以:
- 获得许多出色项目的安装帮助和技术支持
- 获取关于开发的最最新进展
- 与我们的团队交谈并合作
- 以及与我们的社区其余成员一起闲聊!
你是这个资源的作者?登录后可认领此资源。
相似资源
缓冲的原始输入和线程化的事件轮询
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
基于 GTCEu 1.12.2 的现代 GregTech
让你能够在世界中的任何位置定位结构。
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
为你的终界增添新生物群系、神秘仪式和全新生物
评论 0
登录后参与评分
还没有评论,来抢沙发吧