警告
本模组可能会导致在某些服务器上被封禁。请在使用该模组的服务器中咨询管理员,确认是否允许使用此模组。
概述
本次更新改进了在**高延迟(高 Ping)**的多玩家环境中 拾取方块(Pickblock)操作的响应速度与准确性,并减少了因客户端与服务器状态不同步而导致的视觉 残影。
改进内容
1. 拾取方块现在无需等待服务器确认即可立即应用并同步
以往,当玩家使用拾取方块功能时(例如在 PC 上点击鼠标中键),该操作会发送给服务器,客户端会等待服务器确认并批准选择。在高延迟连接下,这会导致客户端更新玩家物品栏或用户界面之前出现明显的停顿。
现在:
- 客户端会立即预测并在本地应用拾取方块的结果。
- 如果服务器的权威结果与客户端的预测不一致,客户端将在收到回应后进行相应更新。
这消除了由往返网络延迟引起的输入迟滞感。
为何重要: 在高延迟连接下,等待服务器响应可能会增加显著的延迟(100 毫秒至 500 毫秒或更多);在本地进行预测可以消除选择物品等快速操作时的等待时间。
2. 减少了因拾取方块解析导致的方块残影不同步
方块残影是指客户端和服务器对某个方块的存在或选择状态存在分歧的情况。在本次更新所针对的特定场景中:
- 服务器已接受拾取方块操作并更新了世界状态。
- 但客户端尚未应用该更新,因此视觉上未显示选择或显示了错误的方块。
- 这导致服务器和客户端的视图不匹配——服务器记录了该方块,但客户端渲染结果不同。
本次更新通过以下方式减少此类不匹配:
- 更快的更新传播: 新架构使客户端能更及时地处理方块状态数据包。
- 优先级协调: 当服务器的权威状态到达(方块被选中或更新)时,客户端会迅速将其纳入,以防止长时间的不匹配。
- 更小的不同步窗口: 客户端不再为了显示效果而等待服务器响应,而是基于预测和及时的服务器校正来更新自己的视图。
这些改进减少了 服务器认为拾取方块已发生 但 客户端尚未反映该选择 的情况,从而避免玩家因客户端更新延迟而看到空白的结果。
技术细节
- 客户端本地预测: 客户端会在本地预测诸如拾取方块之类的简单操作,并立即更新用户界面。服务器仍会在后台以权威方式确认或修正该预测。
- 异步同步: 服务器更新的 handling 不会阻塞输入或用户界面——更新以数据包形式传入,客户端会及时对其进行协调。
- 减少不匹配持续时间: 残影通常发生在服务器已执行操作但客户端尚未更新的窗口期;通过优先处理这些更新并更快地应用校正,该窗口期大大缩短。
预期效果
| 场景 |
更新前 |
更新后 |
| 高延迟(>200 ms)时使用拾取方块 |
延迟及偶尔的视觉不同步 |
客户端用户界面即时响应,状态正确或快速更新 |
| 方块状态同步 |
快速操作后频繁出现不匹配 |
服务器与客户端状态更接近同步,残影伪影更少 |
| 整体响应速度 |
客户端等待服务器 |
客户端感觉响应灵敏,服务器校正平滑应用 |
总结
本次更新通过使用本地预测和异步服务器确认,使拾取方块操作感觉更加即时,并显著减少了因网络延迟导致服务器已接受的操作未在客户端视图中反映而产生的方块残影。高延迟玩家将感受到更好的响应速度以及方块选择和交互中更少的视觉不一致性。
WARNING
This mod may cause bans in some servers. Please ask a moderator in the server your gonna use it on if the mod is allowed.
Overview
This update improves responsiveness and correctness of the Pickblock action in multiplayer environments with high latency (high ping) and reduces visual ghosting caused by client–server state desynchronization.
Improvements
1. Pickblock Now Applies and Syncs Without Waiting for Server Confirmation
Previously, when a player used Pickblock (e.g., middle‑click on PC), the action was sent to the server and the client waited for the server to acknowledge and confirm the selection. On high‑ping connections, this introduced a noticeable pause before the client updated the player’s inventory or UI.
Now:
- The client immediately predicts and applies the Pickblock result locally.
- If the server’s authoritative result differs from what the client predicted, the client updates accordingly when that response arrives.
This eliminates the feeling of input lag caused by round‑trip network latency.
Why this matters: waiting on server response can add significant delay (100 ms–500 ms or more) on high‑latency connections; predicting locally removes that waiting period for quick actions such as selecting items.
2. Ghost Block Desynchronization Caused by Pickblock Resolution Reduced
A ghost block occurs when the client and server disagree about the presence or selection of a block. In the specific case this update addresses:
- The server has accepted the Pickblock action and updated its world state.
- But the client hasn’t yet applied that update, so it visually shows no selection or the wrong block.
- This results in the server and client having mismatched views — the server records the block, but the client renders differently.
This update reduces such mismatches by:
- Faster update propagation: New architecture processes block state packets more promptly on the client.
- Priority reconciliation: When the server’s authoritative state arrives (block selected or updated), the client incorporates it quickly to prevent a prolonged mismatch.
- Smaller desync windows: The client stops waiting on server responses for display purposes and instead updates its own view based on both prediction and timely server correction.
These improvements cut down on occurrences where the server thinks Pickblock happened but the client hasn’t reflected the pick, so players don’t see an empty result due to delayed client updates.
Technical Details
- Client‑local prediction: The client predicts simple actions like Pickblock locally and updates UI immediately. The server still authoritatively confirms or corrects that prediction in the background.
- Asynchronous syncing: The server update is handled without blocking input or UI — updates come in as packets and the client reconciles them promptly.
- Reduced mismatch duration: Ghosting often happens in the window where the server has acted but the client hasn’t updated; by prioritizing those updates and applying corrections faster, that window is much smaller.
Expected Results
| Scenario |
Before |
After |
| High ping (>200 ms) using Pickblock |
Delay and occasional visual desync |
Immediate client UI with correct or fast‑updated state |
| Block state synchronization |
Frequent mismatches after fast actions |
Server and client closer in sync, fewer ghosting artifacts |
| General responsiveness |
Client waits on server |
Client feels responsive, server corrections applied smoothly |
Summary
This update makes Pickblock feel immediate by using local prediction and asynchronous server confirmation, and it significantly reduces ghost blocks caused when the server’s accepted action wasn’t reflected in the client’s view due to delayed networking. Players with high latency will notice both better responsiveness and fewer visual inconsistencies in block selection and interaction.
评论 0
登录后参与评分
还没有评论,来抢沙发吧