change ping sending frequency to 0.5 seconds

This commit is contained in:
in0finite 2022-05-01 07:10:49 +02:00
parent 4bbe62b90e
commit 1be238b095

View file

@ -160,6 +160,7 @@ namespace SanAndreasUnity.Net
CheckIfIPAddressIsValid (ip);
CheckIfPortIsValid (serverPortNumber);
SetupNetworkManger( ip, serverPortNumber );
Mirror.NetworkTime.PingFrequency = 0.5f; // we need more agile ping measurement
NetworkManager.singleton.StartClient ();
}