[#12561] 修复在世界完全加载前发送不必要的 UDP 数据包的问题
变更摘要
修改了
NetServer快照发送逻辑,改为直接向单个NetConnection发送数据包,防止在世界加载完成前向客户端发送不必要的 UDP 数据包。
状态 Open · 目标分支 master ← fix-NetServer
主要变更
修改
NetServer快照发送机制,不再使用全局Call广播改为直接向单个
NetConnection发送数据包防止向尚未加载世界的客户端发送快照数据包
作者说明
如果您的拉取请求不涉及翻译或服务器列表,请阅读下方的要求列表并勾选每个方框:
我已阅读贡献指南。
我已确保我的代码能够编译,如适用。
我已确保此 PR 中的任何新功能在游戏内运行正常,如适用。
描述
修改了 NetServer 快照发送逻辑,改为直接向单个 NetConnection 发送数据包,而不是使用全局 Call 广播。
这可以防止快照数据包被发送给尚未加载世界的客户端。
GitHub 原文
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Description
Changed NetServer snapshot sending to send packets directly to individual NetConnections instead of using global Call broadcasts.
This prevents snapshot packets from being sent to clients that have not loaded the world yet.
由 MDT GitHub 同步机器人自动同步,中文翻译与摘要由 AI 辅助生成,仅供阅读参考。