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
* refactor: simplify tick system, introduce server based time
* feat!: remove receive tick
* feat!: remove max received events per tick rate
* feat!: Update components to use new time system. Remove time sync message.
* test: NetworkTime operators and creation tests
* test: Upgrade manual network variable test to new time system
* docs: network config tooltip for tickrate
* feat!: completely remove old network time
* feat: decouple network time system
* feat: NetworkTime use double everywhere
* docs: Improve tick rate tool tip.
* change tickrate to 30
Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com>
//we are ignoring parameters that are controlled by animation curves - syncing the layer states indirectly syncs the values that are driven by the animation curves
273
+
//we are ignoring parameters that are controlled by animation curves - syncing the layer states indirectly syncs the values that are driven by the animation curves
/// Amount of times per second the receive queue is emptied and all messages inside are processed.
64
+
/// The tickrate of network ticks. This value controls how often MLAPI runs user code and sends out data.
65
65
/// </summary>
66
-
[Tooltip("The amount of times per second the receive queue is emptied from pending incoming messages")]
67
-
publicintReceiveTickrate=64;
68
-
69
-
/// <summary>
70
-
/// Duration in seconds between network ticks.
71
-
/// </summary>
72
-
[Tooltip("Duration in seconds between network ticks")]
73
-
publicfloatNetworkTickIntervalSec=0.050f;
74
-
75
-
/// <summary>
76
-
/// The max amount of messages to process per ReceiveTickrate. This is to prevent flooding.
77
-
/// </summary>
78
-
[Tooltip("The maximum amount of Receive events to poll per Receive tick. This is to prevent flooding and freezing on the server")]
79
-
publicintMaxReceiveEventsPerTickRate=500;
80
-
81
-
/// <summary>
82
-
/// The amount of times per second internal frame events will occur, e.g. send checking.
83
-
/// </summary>
84
-
[Tooltip("The amount of times per second the internal event loop will run. This includes for example NetworkVariable checking.")]
85
-
publicintEventTickrate=64;
66
+
[Tooltip("The tickrate. This value controls how often MLAPI runs user code and sends out data. The value is in 'ticks per seconds' which means a value of 50 will result in 50 ticks being executed per second or a fixed delta time of 0.02.")]
67
+
publicintTickRate=30;
86
68
87
69
/// <summary>
88
70
/// The amount of seconds to wait for handshake to complete before timing out a client
0 commit comments