8000 Allow spectators to connect in an already started session · Issue #121 · lucasteles/Backdash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow spectators to connect in an already started session #121
Open
@lucasteles

Description

@lucasteles

We need a new protocol message spectate request which the client should send to the host.

The client needs to synchronize the game state within the server before starting spectating in real time.

We have two options for that:

  • The host responds with a stream of the inputs from the beginning of the match until the client becomes synchronized.
    • Concerns:
      • could we use the same InputMessage as a normal sync?
      • would be better to have a new specialized callback on INetcodeSessionHandler?
    • Pros:
      • we already have an input sync infrastructure
      • inputs are small
    • Cons:
      • the client will need to rebuild the game state frame by frame.
  • The host responds with the current serialized gamed state.
    • Pros:
      • no state sync is needed
      • we already have the state serialized deterministically
    • Cons:
      • state size can be big
      • no infrastructure for large-body messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0