Input on Shared mode
The whole answer can be found below.
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).
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
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
Back to top