You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MLAPI/Configuration/NetworkConfig.cs
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,11 @@ public class NetworkConfig
96
96
[Tooltip("Enable this to resync the NetworkedTime after the initial sync")]
97
97
publicboolEnableTimeResync=false;
98
98
/// <summary>
99
+
/// If time resync is turned on, this specifies the interval between syncs in seconds.
100
+
/// </summary>
101
+
[Tooltip("The amount of seconds between resyncs of NetworkedTime, if enabled")]
102
+
publicintTimeResyncInterval=30;
103
+
/// <summary>
99
104
/// Whether or not to enable the NetworkedVar system. This system runs in the Update loop and will degrade performance, but it can be a huge convenience.
100
105
/// Only turn it off if you have no need for the NetworkedVar system.
if(LogHelper.CurrentLogLevel<=LogLevel.Developer)LogHelper.LogInfo($"Received network time {netTime}, RTT to server is {rtt}, setting offset to {networkTimeOffset} (delta {networkTimeOffset-currentNetworkTimeOffset})");
0 commit comments