Fusion and lockstep

FrixQn
FrixQn
edited September 2022 in Fusion

Does Fusion use lockstep the concept if you run network runner in dedicated server mode?

Answers

  • emotitron
    emotitron ✭✭✭
    edited September 2022

    Greetings~

    It does not employ lockstep. It is based on state transfer from the State Authority (the server in the case of Dedicated Server Mode) to clients. Clients can either employ prediction to render remote objects in the local timeframe, or it can can employ Lag Compensation to account for clients seeing remote objects in the past.

  • But after all, every predicted tick on the client must be confirmed by the server. But after all, the server will never be able to confirm the next tick if it has not received input from all players and has not modeled the system at the time of the tick itself, since its simulated system state in a particular tick is 100% accurate

  • Hi @FrixQn.

    If you need a deterministic network engine (lockstep is a deterministic approach), then Photon Quantum is the correct choice for you and not Photon Fusion.

  • emotitron
    emotitron ✭✭✭
    edited September 2022

    If the Server does not get the inputs from a client in time when it does the authority tick simulation, it will run without that input (defaulting to a default version of the INetworkInput struct). There is a callback this triggers, so you can implement your own handling for this - such as just replicating the previous input.

    This will create a missed prediction for the client, and client reconciliation will force that client back into agreement with the server.