关于
这是 FastSuite 针对 Minecraft 1.21+ Fabric 的非官方移植版。原版模组由 shadows_of_fire 为 Forge/NeoForge 开发。
FastSuite 通过并发技术实现更快的配方匹配执行。对于拥有超过 100 个配方的任何配方类型,FastSuite 将启用并发配方匹配,并使用多个线程来匹配所有配方组合,而不是依赖单个线程来完成此工作。在 All The Mods 8 中观察到这带来了 10x - 12x 的速度提升,如下所示:
[多线程测试] - 查找橡木木板配方的平均耗时为 301960.28 ns
[单线程测试] - 查找橡木木板配方的平均耗时为 2774185.5 ns
[多线程测试] - 查找木棍配方的平均耗时为 494851.94 ns
[单线程测试] - 查找木棍配方的平均耗时为 4500045.0 ns
[多线程测试] - 查找工作台配方的平均耗时为 148572.14 ns
[单线程测试] - 查找工作台配方的平均耗时为 3246270.5 ns
[多线程测试] - 查找黑色潜影盒配方的平均耗时为 370346.56 ns
[单线程测试] - 查找黑色潜影盒配方的平均耗时为 4711380.0 ns
[多线程测试] - 查找失败匹配的配方的平均耗时为 701000.56 ns
[单线程测试] - 查找失败匹配的配方的平均耗时为 1.3034094E7 ns
可以在配置文件中将存在并发配方匹配问题的配方类型加入黑名单。与 FastSuite 的前几代版本相比,并发匹配模型具有更好的兼容性(它可与 Polymorph 共存),并且始终能正常工作(而旧模型在配方变动较大时无法工作,且第一次匹配时也不起作用)。此外,它的健壮性略有提升,因为它在匹配过程中不需要写入任何数据,从而避免了因模组在线程外匹配配方而可能引发的问题。
兼容性
本模组应能与其他所有模组完全兼容。它设计为非侵入式,除非有其他模组也替换了配方管理器,否则不应与任何东西发生冲突。它经过专门调整,以使其能与 KubeJS 和 CraftTweaker 等配方修改模组协同工作,并且不会给 JEI 带来任何问题。
本模组不替换 FastWorkbench 或 FastFurnace,尽管安装本模组后它们的收益会有所降低,因为部分工作将被卸载到 FastSuite 上。为了获得最佳的配方性能,我仍然建议同时安装这两者,但如果只能二选一,则应选择 FastSuite 而非其他两者之一。
About
This is an unofficial port of FastSuite to Fabric for Minecraft 1.21+. The original mod was developed by shadows_of_fire for Forge/NeoForge.
FastSuite enables faster execution of recipe matching through the use of concurrency. For any recipe type with more than 100 recipes, FastSuite will enable Concurrent Recipe Matching, and use multiple threads to match all recipe combinations, instead of relying on a single thread to perform this work. This was observed to produce a 10x - 12x speedup in All The Mods 8, as shown below:
[Multithreaded Test] - Took an average of 301960.28 ns to find the recipe for acacia planks
[Singlethreaded Test] - Took an average of 2774185.5 ns to find the recipe for acacia planks
[Multithreaded Test] - Took an average of 494851.94 ns to find the recipe for sticks
[Singlethreaded Test] - Took an average of 4500045.0 ns to find the recipe for sticks
[Multithreaded Test] - Took an average of 148572.14 ns to find the recipe for crafting table
[Singlethreaded Test] - Took an average of 3246270.5 ns to find the recipe for crafting table
[Multithreaded Test] - Took an average of 370346.56 ns to find the recipe for black shulker box
[Singlethreaded Test] - Took an average of 4711380.0 ns to find the recipe for black shulker box
[Multithreaded Test] - Took an average of 701000.56 ns to find the recipe for failed match
[Singlethreaded Test] - Took an average of 1.3034094E7 ns to find the recipe for failed match
Recipe types that exhibit problems with Concurrent Recipe Matching can be blacklisted in the configuration file. As compared to the previous iterations of FastSuite, the concurrent matching model is more compatible (it works with Polymorph installed), and it always works (whereas the old model did not work if there was substantial recipe churn and did not work on the first match). It also is a bit less brittle, because it does not need to write any data during matching, which could cause issues if mods were matching recipes off-thread.
Compatibility
This mod should work completely with all other mods. It is made to be non-intrusive, and should not conflict with anything short of another mod also replacing the recipe manager. It has been tailored such that it should work with recipe modification mods such as KubeJS and CraftTweaker, and it does not cause any issues with JEI.
This mod does not replace FastWorkbench or FastFurnace, though their benefits will be lessened if this is installed, as some of the work will be offloaded to FastSuite. To receive maximum performance with regards to recipes, I still advise having both of them installed, but if you had to pick just one, it should be FastSuite over either of the others.
评论 0
登录后参与评分
还没有评论,来抢沙发吧