Get ping and packet loss statistics with ENet

Godot Version

4.3

Question

Is there a built-in way to get statistics on ping and packet loss between 2 players (1 server 1 client) with ENet? If not I assume a custom test needs to be made via put and get packet, or is there a way to test that via RPC?

I think this is what you want EnetPacketPeer.get_statistic(statistic: PeerStatistic)

PeerStatistic PEER_ROUND_TRIP_TIME
PeerStatistic PEER_PACKET_LOSS

1 Like

I have no idea how I didn’t found this one in the documentation - thanks a lot!