Getting roundtrip in Fusion

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.

Getting roundtrip in Fusion

monoflauta
2022-04-18 14:14:40

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!

Comments

ramonmelo
2022-06-15 13:39:24

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()", 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

Back to top