NoiseThreader 通过选择性地对噪声生成器等世界生成器进行多线程处理,从而提升世界生成的性能。
目前,它为原版维度(主世界/末地/下界)的噪声生成器以及 OpenTerrainGenerator 的主世界生成器添加了多线程支持。此外,还为 YUNG's BetterCave 的洞穴雕刻器/噪声生成器添加了多线程支持。
标准的噪声生成器在生成区块时仅在服务器主线程上执行昂贵的计算,而 NoiseThreader 通过将计算拆分并分散到多个线程上来提升性能。
性能提升因系统而异,但在测试中,即使是 4 核心的处理器也能通过噪声生成器的多线程处理获得性能增益。出于安全考虑,默认情况下,NoiseThreader 尝试进行多线程处理所需的最小核心数设置为 4,但你可以在配置文件中更改此数值,即使是在低配电脑上也可能看到性能提升。
在我的系统上对高度图(噪声)生成耗时进行的分析(你的实际表现可能有所不同)显示,原版主世界的性能提升了约 50%。对于 OTG 的主世界,结果约为 60% 的提升,由于 OTG 的生成成本更高,这一提升更为显著,使得高度图生成时间从每区块约 2.5ms 降低到了约 1ms。(相比之下,现有的 Multithreaded Noise 模组测试结果显示性能提升约为 25% - 30%,且仅适用于原版主世界。)原版下界和末地也获得了一些提升,但由于它们使用的噪声生成规模较小,提升幅度相对不那么显著,大约在 10% - 30% 之间。
YUNG's BetterCave 的洞穴雕刻性能也提升了约 60%,鉴于洞穴雕刻在世界生成期间的性能损耗中占比较大,这一提升非常显著。
正如多线程的目的所在,当服务器主线程负载较重时(例如在使用 OTG 生成时),你可能会看到更明显的性能提升。
请将任何问题/错误/建议报告给页面顶部的 Issue Tracker,或发送到我下方链接的 Discord 服务器。
此模组不需要在客户端安装。
需要联系我或支持我吗?点击下方的徽章:
需要服务器吗?点击下方横幅并使用代码 "fonny" 在 Bisect Hosting 首月享受 25% 折扣:

NoiseThreader improves world generation performance by selectively multi-threading world generators such as the noise generators.
Currently adds multi-threading to noise generators for Vanilla dimensions (Overworld/End/Nether) as well as OpenTerrainGenerator's Overworld generator.
Additionally adds multi-threading to YUNG's BetterCave's cave carver/noise generator.
Standard noise generators perform costly calculations on only the main server thread when chunks are generated, NoiseThreader improves performance by splitting up these calculations and spreading the load out across multiple threads.
Performance improvement will vary across different systems however in testing even 4 cores can see performance gains through multi-threading the noise generators.
Currently by default the minimum amount of cores required before NoiseThreader will attempt multi-threading is set to 4 for safety, however you can change this number in the config and may still see improvements if you are on a potato.
Profiling the time taken for Height-Map (Noise) generation on my system (Your mileage may vary) resulted in ~50% performance improvement for the Vanilla Overworld.
For OTG's Overworld, the results were around ~60% improvement, being more significant due to OTG's heavier generation cost as this resulted in Height-Map generation going from ~2.5ms/chunk down to ~1ms/chunk.
(For comparison, the existing Multithreaded Noise mod tested at around ~25% - ~30% improvement, and also only applies to the Vanilla Overworld.)
The Vanilla Nether and End also saw some improvements, however less significant due to them using smaller noise generations, of roughly ~10% - ~30%.
YUNG's BetterCave's cave carving also has a performance improvement of ~60% which is significant given that cave carving accounts for a large portion of performance loss during world generation.
As is the point of multi-threading, you will likely see more significant performance improvements when the primary server thread is being utilized heavier such as in the case of OTG generation.
Please report any issues/bugs/suggestions to the issue tracker linked at the top of the page or to my Discord server linked below.
This mod is not required client-side.
Need to get in contact with me, or want to support me? Click the badges below:
Need a server? Click the banner below and use code "fonny" for 25% off your first month with Bisect Hosting:

评论 0
登录后参与评分
还没有评论,来抢沙发吧