Measure Ping

How do I measure ping in milliseconds in coherence?

Once connected, you can use:

        CoherenceBridge bridge;
        if (CoherenceBridgeStore.TryGetBridge(gameObject.scene, out bridge))
        {
            Debug.Log(bridge.Client.Ping.ToString());
        }

Thanks, is the ping measured as the time the message takes to go from the client to the server? or is it the time the message takes to go from the client to the server and then from the server to the client?

The Ping struct gives you both the average latency and the average roundtrip times.

This is the measurement of a message travelling from the client to the replication server. (and back in case of RTT)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.