Getting roundtrip in Fusion
Hello!
I am trying to get the roundtrip to server in Fusion. We are trying to use the Shared structure but it seems I can only get the Roundtrip to other players. Is there a way to get the roundtrip to the server?
Thank you!
Best Answer
-
Hi @monoflauta ,
Easy:
On a client, if you call "NetworkRunner.GetPlayerRtt(PlayerRef.None)", you will get the RTT with the remote Server.
On a server, if you call "NetworkRunner.GetPlayerRtt(<target player ref>)", you will get the RTT with that particular remote client.
There is no way for a Client to get the RTT with another Client, as there is no connection between clients.
--
Ramon Melo
Photon Fusion Team
0
Answers
-
Hi @monoflauta ,
Easy:
On a client, if you call "NetworkRunner.GetPlayerRtt(PlayerRef.None)", you will get the RTT with the remote Server.
On a server, if you call "NetworkRunner.GetPlayerRtt(<target player ref>)", you will get the RTT with that particular remote client.
There is no way for a Client to get the RTT with another Client, as there is no connection between clients.
--
Ramon Melo
Photon Fusion Team
0