Skip to content

Sequencing of players leaving and action tick dispatching #1

@diewolke9

Description

@diewolke9

Since the implementation of the project would involve mapping sync "response" actions to player sources that need to be in the game at the time the response is received, and the responses will be injected as actions, it is necessary to make sure that any PlayerLeave packets will synchronise the sync.players map accordingly within the context of the dispatch_action_tick function, in particular:

  • a player leaving action causes the sync.players map to change
  • a player leaving action will queue up a PlayerLeave packet
  • we need to make sure that the timing of the actual sending of the PlayerLeave packet is in sync with the change of state: so we want the state change and the PlayerSync packet to both occur before we lock up the state in dispatch_action_tick (or at least that's what I @diewolke9 understood :D)
    Anyways, Faro said he has a solution :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions