本模组通过移除原版资源位置中不必要的命名空间来减少网络开销。此更改可为每次出现节省 10 字节。
工作原理
Minecraft 经常使用命名空间标识符(也称为资源位置)。每个标识符都包含一个命名空间和一个路径,用于描述游戏对象。该命名空间是可选的,如果未指定,则默认为 minecraft。即使并非必要,原版的网络编码器仍会包含命名空间,从而增加了不必要的开销。
此更改的效果如何?
每次出现默认命名空间都会增加 10 字节的非必要开销。玩家可以预期登录过程至少可减少 105KB。随着安装的其他内容增多,减少的量也会增加,例如,ATM 10 整合包的登录过程至少可减少 125KB。虽然这听起来像是一个微小的减少,但这种开销是不必要的,对于网络连接较差的玩家以及玩家基数较大的服务器来说,可能会产生有意义的影响。本模组还可以帮助缓解数据包超过 2MB 限制的问题。本模组并非能解决所有问题的万能药,但它是您可以考虑的另一个工具。
以下列表展示了在理想的双向网络中传输 120KB 数据包所需的时间。在现实世界中,速度受限于服务器的上传速度、玩家的下载速度以及许多其他因素。
- 5Mbps = 192ms
- 10 Mbps = 96ms
- 15 Mbps = 64ms
- 100 Mbps = 9.6ms
- 200 Mbps = 4.8ms
- 500 Mbps = 1.92ms
- 1000 Mbps = 0.96ms
注意:120kb 等于 960,000 位,而 1Mbps 连接每秒传输 1,000,000 位。互联网服务提供商以每秒兆比特(megabits)而非每秒兆字节(megabytes)列出其速度,以误导消费者。
服务器?客户端?单人游戏?
本模组所做的更改应与客户端和服务器完全兼容,即使它们没有安装此模组也是如此。例如,模组化服务器会向任何客户端发送更小的数据包,而模组化客户端可以向任何服务器(包括原版服务器)发送更小的数据包。这些更改也适用于单人游戏和局域网模式,因为这些模式仍然依赖于与集成服务器的数据包通信。如果可能,我们建议所有玩家和服务器都安装此模组以获得最大收益。
兼容性
本模组使用 Mixin 来应用其更改。虽然这在现代 Minecraft 模组中很常见,但它始终存在与其他在线模组或修改后的客户端不兼容的风险。本模组所做的更改符合原版规范,并且应该与完全实现该规范的所有内容兼容。目前没有已知的不兼容问题。
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可在您的第一个月服务中获得 30% 的折扣!
This mod removes networking overhead by removing the unnecessary namespace from vanilla resource locations. This change will save 10 bytes per occurrence.
How it works?
Minecraft uses namespaced identifiers often called resource locations. Each identifier has a namespace and a path which describes a game object. The namespace is optional and is assumed to be minecraft if it is not specified. The vanilla network encoders still include the namespace even if it is not necessary which adds unnecessary overhead.
How effective is this change?
Each occurence of the default namespace adds 10 bytes of unnecesary overhead. Players can expect the login process the be reduced by at least 105kb. The amount reduced increases with the amount of additional content installed, for example the login process for the ATM 10 modpack is reduced by at least 125kb. While this may sound like a small reduction, the overhead is unnecesary and can have a meaningful impact for players with a poor internet connection and for servers with a large player base. This mod can also help mitigate issues wit packets exceeding the 2mb limit. This mod is not a silver bullet that can solve all of your issues but it is another tool to be considered.
The following list shows how long it takes to transfer a 120kb packet over a perfect bidirectional network. In the real world speeds are limited by the upload speed of the server, the download speed of the player, and many other factors.
- 5Mbps = 192ms
- 10 Mbps = 96ms
- 15 Mbps = 64ms
- 100 Mbps = 9.6ms
- 200 Mbps = 4.8ms
- 500 Mbps = 1.92ms
- 1000 Mbps = 0.96ms
Note: 120kb is 960,000 bits and a 1Mbps connection transfers 1,000,000 bits per second. Internet providers list their speeds in megabits per second and not megabytes to mislead consumers.
Server? Client? Singleplayer?
The changes made by this mod should be fully compatible with clients and servers, even if they do not have this mod installed. For example modded servers will send smaller packets to any client, and modded clients can send smaller packets to any server including vanilla servers. These changes also apply to singleplayer and LAN mode which still rely on packets to the integrated server. If possible, we recommend that all players and the server have this mod installed for the most benefit.
Compatibility
This mod uses Mixin to apply its changes. While this is common for moddern Minecraft mods it always carries a risk of causing incompatibilities with other online mods or modified clients. The changes made by this mod are within the vanilla spec and should be compatible with everything that fully implements it. There are no known incompatibilities.
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
下载 Resource Trimmer
下载 Resource Trimmer
下载 Resource Trimmer
下载 Resource Trimmer
下载 Resource Trimmer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Resource Trimmer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Resource Trimmer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Resource Trimmer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Resource Trimmer
下载 Resource Trimmer
这是 26.3 的第一个成功构建。你可以在此处了解更多信息 here。
该项目得以实现,离不开像您这样的玩家通过 Patreon 提供的支持!非常感谢!
- lothrazar
- techsquirrel
- Tobias Ward
- noobanidus
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧