Input on Shared mode

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Input on Shared mode

Jaynesh
2021-12-23 09:19:41

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

Comments

ramonmelo
2021-12-23 13:31:28

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

Jaynesh
2021-12-24 08:51:26

@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.

Arunk
2022-10-20 05:13:10

Hi @ramonmelo

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

ramonmelo
2022-10-25 17:13:54

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

Back to top