一个小型模组,通过在与服务器刻并行的独立线程上运行铁路网络的所有计算来大幅提升性能,尤其是在大型网络中。
该模组仅适用于服务端,但也可在客户端使用(如果你在单人游戏中游玩)。
本模组兼容 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!
下载 Create: Threaded Trains
下载 Create: Threaded Trains
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Create: Threaded Trains
下载 Create: Threaded Trains
下载 Create: Threaded Trains
下载 Create: Threaded Trains
下载 Create: Threaded Trains
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧