Skip to content
Snippets Groups Projects

Resend gamestate when resynching

Merged LJ Sonic requested to merge resend-gamestate into next

This replaces the current resynch system with a complete gamestate reload, which lets it recover from a lot more situations, rather than just trivial errors with the player movement code.

Although technically the old resynch code is completely gone, the interface is mostly the same as before: it is still possible to kick desynched players instead of resynching them by setting resynchattempts 0, and the "Resynching..." HUD is still shown during the process.

In order to prevent excessive "resynch hell" in cases where the game desynches too often, there is a per-client 15 second cooldown during which the gamestate cannot be resent. Also, in order to avoid stressing the server and to make the process faster, the gamestate will only be resent to one client at a time.

Edited by LJ Sonic

Merge request reports

Approval is optional
Ready to merge by members who can write to the target branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading