禁用会导致卡顿的不必要传送门检查。
注意:我已经验证该模组适用于 1.19.3 - 26.3 版本。由于代码非常简单,它_很可能_也能在未来的版本中运行,但我可能需要一段时间才能进行测试并更新支持的版本。如果你想强制它在未测试的版本中工作,可以使用 Fabric 的覆盖依赖项功能,但需自行承担风险。如果它无法正常工作(若无法正常工作,游戏将无法编译),请在 Discord 上私信 @Soronto。
在 1.19.3 之前的版本中,下界传送门会无视另一侧的碰撞检测,直接将生物传送到对面。这可能会导致大型生物在传送门另一侧的窒息方块内生成时因窒息而死亡。
从 1.19.3 开始,Mojang 实现了一种算法,用于检查生物在默认位置通过传送门时是否会窒息;如果会窒息,则尝试寻找一个“安全”的位置。然而,这种计算非常耗费资源,在处理大量生物通过传送门时可能会显著增加卡顿。
此模组将取消该检查,恢复 1.19.3 之前的传送门行为。这显然会重新出现生物可能窒息的边缘情况,但对于基于传送门的农场而言,此模组还将大幅降低 MSPT(每刻毫秒数)开销。
Disable unnecessary portal checks that cause lag.
NOTE: I have verified the mod works for versions 1.19.3 - 26.3. It is simple enough that it will most likely work in future versions, but it may take me a while to get around to testing it and updating the versions. If you want to force it to work in an untested version, you can use Fabric's Overriden Dependencies feature to do so at your own risk. If it does not work (the game should not compile if it doesn't), then dm @Soronto on discord.
In pre-1.19.3, nether portals would send mobs through without regard for collisions on the other side. This can have the adverse effect of causing large mobs to suffocate if they spawn inside a suffocating block on the other side of the portal.
Since 1.19.3, Mojang implemented an algorithm to check if a mob will suffocate when going through in the default position, and will attempt to locate a "clear" position if it will. However, this is very computationally expensive and can significantly increase lag when dealing with large numbers of mobs being transported through portals.
This mod will eliminate the check and bring back pre-1.19.3 portal behavior. This will obviously return the edgecase where a mob will suffocate, but especially for portal-based farms, this mod will also greatly reduce the MSPT cost.
评论 0
登录后参与评分
还没有评论,来抢沙发吧