一个小型模组,通过在与服务器刻并行的独立线程上运行铁路网络的所有计算来大幅提升性能,尤其是在大型网络中。
该模组仅适用于服务端,但也可在客户端使用(如果你在单人游戏中游玩)。
本模组兼容 Create 0.5.1 及所有 Create 6 版本!
✅ 问题与兼容性
由于本模组将所有列车计算卸载到独立线程,依赖或修改 Create 代码中这些部分的附加模组可能会引发问题。这些问题通常表现为服务器卡顿和崩溃。不幸的是,如果模组未针对多线程进行设计(大多数模组并非如此),这些问题很难解决。它对某些整合包有效,但对其他整合包则无效。如果不适合你,我深表歉意 :(
本模组已与 Create 一起测试,并且应该可以正常工作。然而,鉴于有如此众多的不同附加模组,不可能测试并涵盖每种可能的情况。如果你确切知道是哪个附加模组导致了问题,请在 GitHub Issue 中报告,我们可以尝试实施兼容性修复。
但一如既往:请务必备份你的世界存档!
? 工作原理
通常,铁路网络的计算是在服务器刻循环的其他任务(例如方块实体、实体、玩家、区块等)之后立即进行的。在高服务器负载下,例如由于大量的方块实体和庞大的铁路网络,这可能导致非常长的刻时间。
本模组在新服务器刻开始时,与其他任务并行启动铁路网络的计算,从而减少整体时间。为了保持游戏同步,两项任务会相互等待,直到完成后再结束当前刻。
在对拥有 700+ 列列车和总共 200 个模组的庞大服务器的广泛测试表明,这显著提升了性能。
? 贡献项目
欢迎通过在 GitHub 上创建拉取请求或 Issue 来帮助开发。
如有任何疑问,欢迎访问我们的 Discord 服务器。
⚠️ 请注意!
为了保护你的世界免受损坏,在安装前请务必创建世界存档的备份!
A small mod that runs all calculations of the railway network on a separate thread parallel to the server tick, which greatly improves performance, especially in large networks.
This mod is server-side only, but it can also be used on the client-side (if you are playing in singleplayer).
This mod works with Create 0.5.1 and all Create 6 versions!
✅ Issues & Compatibility
Since this mod offloads all train calculations to a separate thread, problems can arise with addons that rely on or modify these parts of Create's code. These problems typically show in server freezes and crashes. Unfortunately, these issues are very difficult to resolve if the mods aren't designed for multithreading (which most won't be). It works for some modpacks, but not for others. I'm sorry if it isn't working for you :(
This mod has been tested with Create and it should work fine with it. However, with such a large number of different addons, it's impossible to test and cover every possible scenario. If you know exactly which addon is causing problems, please report it in a GitHub issue, and we can try to implement a compatibility fix.
But as always: CREATE BACKUPS OF YOUR WORLD!
? How does it work?
Usually, the railway network is calculated immediately after the other tasks of the server tick loop (e.g. Block Entities, Entities, Players, Chunks, etc.). Under high server load, for example, due to many Block Entities and a large rail network, this can result in very long tick times.
This mod starts calculating the railway network in parallel with the other tasks right at the beginning of a new server tick, thus reducing the overall time. To keep the game synchronized, both tasks wait on each other until they are finished before the tick ends.
Extensive tests on a large server with 700+ trains and a total of 200 mods have shown that this improves performance significantly.
? Contribute to this project
Feel free to help with development by creating pull requests or issues on GitHub.
If you have questions, you can visit our Discord server.
⚠️ Please note!
To protect your world from damage, you should always create a backup of your world before installing it!
评论 0
登录后参与评分
还没有评论,来抢沙发吧