Getting roundtrip in Fusion

Options

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

  • ramonmelo
    ramonmelo mod
    Answer ✓
    Options

    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

Answers

  • ramonmelo
    ramonmelo mod
    Answer ✓
    Options

    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