Skip to content

Improve handling of packets when loading#668

Merged
notfood merged 3 commits intorwmt:devfrom
mibac138:packets-when-loading
Sep 8, 2025
Merged

Improve handling of packets when loading#668
notfood merged 3 commits intorwmt:devfrom
mibac138:packets-when-loading

Conversation

@mibac138
Copy link
Copy Markdown
Member

@mibac138 mibac138 commented Sep 5, 2025

When a client is joining a server, the server sends a lot of packets during client loading that aren't properly handled (or shouldn't actually be sent). Now, the Server_Cursor packet is only sent to players that are already loaded (as it doesn't make sense to send it to players that are loading), and Server_KeepAlive and Server_TimeControl are now handled by the client during loading time too.

As long as a player isn't fully loaded it doesn't make sense to send those packets.
The server sends them regardless if the client is already playing or
just loading. While the server could be made to only send those packets
after the client has finished loading, the packets are generally simple
enough to be easily handled during loading too.
It doesn't make sense to send cursor position to server when the client
might not even see the map yet
@notfood notfood added enhancement New feature or request. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). labels Sep 6, 2025
@notfood notfood moved this to In review in 1.6 and Odyssey Sep 6, 2025
@notfood notfood merged commit 9dcd489 into rwmt:dev Sep 8, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in 1.6 and Odyssey Sep 8, 2025
@mibac138 mibac138 deleted the packets-when-loading branch September 10, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). enhancement New feature or request.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants