Peer.RoundTripTime

Options
qaz
qaz
edited March 2014 in Photon Server
Hello,
peer.RounTripTime and peer.RoundTripTimeVariance are always 0.
Do I need to make some configuration changes to server for it to work, or it is not yet implemented?

Comments

  • Hello qaz!

    The RTT & Variance is only set for UDP / ENet peers, not for TCP peers. We should add better documentation for that - thanks for the hint. We'll probably add it for TCP at a later time.

    Another possibility:
    Does your "peer" object inherit from PeerBase (for peers that represent incoming connections) or from ServerPeerBase (for peers that represent outgoing / s2s connections)? We had a bug where RTT & Variance where not set for ServerPeerBase, that one will be fixed in the next Server SDK release.
  • qaz
    Options
    Hello Nicole,
    Thanks for reply, peer inherits PeerBase.
    I hope it will be added to tcp soon.
  • qaz
    Options
    downloaded 3.4 but this feature still isn't available.
    will it be added in future versions? :)