mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
perf: batching is now enabled by default
This commit is contained in:
parent
1b6f898a5a
commit
665b1c2156
@ -56,8 +56,8 @@ public class NetworkManager : MonoBehaviour
|
||||
public int serverTickRate = 30;
|
||||
|
||||
/// <summary>batch messages and send them out in LateUpdate (or after batchInterval)</summary>
|
||||
[Tooltip("Batching greatly reduces CPU & Transport load, but increases latency by one frame time. Use for high scale games / CPU intensive games. Don't use for fast paced games.")]
|
||||
public bool serverBatching;
|
||||
[Tooltip("Batch message and send them out in LateUpdate (or after batchInterval). This is pretty much always a good idea.")]
|
||||
public bool serverBatching = true;
|
||||
|
||||
/// <summary>
|
||||
/// batching from server to client.
|
||||
|
@ -34,7 +34,8 @@ public static class NetworkServer
|
||||
public static bool active { get; internal set; }
|
||||
|
||||
/// <summary>batch messages and send them out in LateUpdate (or after batchInterval)</summary>
|
||||
public static bool batching;
|
||||
// (this is pretty much always a good idea)
|
||||
public static bool batching = true;
|
||||
|
||||
/// <summary>interval in seconds used for batching. 0 means send in every LateUpdate.</summary>
|
||||
public static float batchInterval = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user