Skip to content

Add Deterministic Mode for Rollback #78

@rameshvarun

Description

@rameshvarun

NetplayJS, by default, does not assume that game code is deterministic. Instead, it corrects for drift by having the host send authoritative state updates to the other players. In rollback netcode, because the player predicts ahead, state updates trigger a rollback / replay in addition to the rollbacks from player inputs.

Lockstep has an option to disable state synchronization, but this hasn't been implemented in Rollback netcode yet.

The fix is pretty simple - don't send state updates, and don't wait for state updates to clean up old history.

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