Input on Shared mode

How does input work on shared mode? Handling input via FixedUpdateNetwork is delayed by a few seconds on Shared mode.

Answers

  • ramonmelo
    ramonmelo mod
    edited December 2021

    Hi @Jaynesh ,


    Do you mean that your own player movement (for example) is delayed on your local machine? Or that your player has a delay to on other machines from other players?

    If the case is the latter, then it is expected to have some delay, yes, as the connection is always relayed when using Shared Mode, but it should not be delayed for a few seconds, as you described.

    Are you using the Best Region (leaving empty the Fixed Region field on the PhotonAppSettings) or are you connecting to a specific Region? Are you able to test with another Region?

    Also, does this also happen with the default sample included on the SDK? 


    --

    Ramon Melo

    Photon Fusion Team

  • @ramonmelo

    Thanks for your reply. I'm using this example here https://doc.photonengine.com/en-us/fusion/current/fusion-100/fusion-102

    On shared mode, it detects the input after 2-3 seconds. On hosted mode, it's almost instant.

  • Hi @ramonmelo

    Any suggestions for the above question, we are also facing the same problem using Shared mode.

  • Hi @Arunk @Jaynesh ,


    If you are using Shared Mode, there is no need to use the Fusion Input System, as the local player is already the State Authority over its created NetworkObject, you can just modify the state at will and it will not have any kind of delay involved.


    Do you have a reproduction project showing the delay when using the Input System?

    --

    Ramon Melo

    Photon Fusion Team