弩优化器!
本模组将弩的装填过程完全在客户端处理,从而降低延迟的影响,并确保服务器不会中断装填流程。
问题所在
在装填时,客户端必须等待“使用物品”数据包到达服务器,等待服务器处理装填操作,最后等待服务器将已充能的弩状态同步回客户端。同样的往返延迟也会影响射击:你无法开始下一次装填,直到服务器确认你的弩已经发射并将其更新为空状态,而服务器必须将此状态发送回客户端,这会导致更多的延迟。此外,高延迟可能导致服务器不同步并随机取消你的装填操作。
延迟不应影响你装填的速度或一致性。
解决方案
本模组通过将装填和射击都移至客户端来解决此问题。当你射击时,它会立即清空弩中的弹药,让你无需等待延迟即可立即开始下一次装填。通过过滤掉无效的服务端更新(通常由高延迟、丢包等引起),该模组防止了服务器取消你正在进行的装填操作。服务器仍然负责处理从弩中射出的箭矢。
演示视频
致谢
- 模组作者:Walksy
- 图标设计:SakuraFX / Luna
- 图标素材:pvoq
Crossbow Optimizer!
This mod handles crossbow reloading completely on the client, reducing the effect of ping and ensuring the server doesn't interrupt the reloading process.
The Problem
When reloading, the client must wait for the use-item packet to reach the server, wait for the server to process the reload, and finally wait for the server to sync the charged crossbow state back to the client. This same round-trip latency affects shooting too where you can't start reloading again until the server confirms your crossbow has fired and updates it to an empty state, which it has to send back to the client causing even more delays. On top of this, high ping can cause the server to desync and cancel your reloads randomly.
Ping shouldn't effect the speed or consistency in which you reload.
The Solution
This mod fixes this by moving both reloading and shooting to the client. It empties the crossbow as soon as you shoot, letting you start your next reload immediately without waiting on your ping. By filtering out invalid server updates (normally causes by high ping, packet loss etc), the mod prevents the server from cancelling your active reloads. The server still handles the arrows being fired from the crossbow.
Demonstration Video
Credits
- Mod: Walksy
- Icon Design: SakuraFX / Luna
- Icon: pvoq
评论 0
登录后参与评分
还没有评论,来抢沙发吧