diff --git a/Assets/Mirror/Examples/AdditiveScenes/Scenes/MainScene.unity b/Assets/Mirror/Examples/AdditiveScenes/Scenes/MainScene.unity index 5bd2c6a1e..0b9825da9 100644 --- a/Assets/Mirror/Examples/AdditiveScenes/Scenes/MainScene.unity +++ b/Assets/Mirror/Examples/AdditiveScenes/Scenes/MainScene.unity @@ -1747,11 +1747,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: onlineScene: transport: {fileID: 1661834280} networkAddress: localhost - maxConnections: 4 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} diff --git a/Assets/Mirror/Examples/Basic/Scenes/Example.unity b/Assets/Mirror/Examples/Basic/Scenes/Example.unity index 956473a7f..d3cbbce58 100644 --- a/Assets/Mirror/Examples/Basic/Scenes/Example.unity +++ b/Assets/Mirror/Examples/Basic/Scenes/Example.unity @@ -185,11 +185,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: onlineScene: transport: {fileID: 249891955} networkAddress: localhost - maxConnections: 16 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} diff --git a/Assets/Mirror/Examples/Chat/Scenes/Main.unity b/Assets/Mirror/Examples/Chat/Scenes/Main.unity index 0aff79814..266243f40 100644 --- a/Assets/Mirror/Examples/Chat/Scenes/Main.unity +++ b/Assets/Mirror/Examples/Chat/Scenes/Main.unity @@ -2942,11 +2942,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: onlineScene: transport: {fileID: 1783103023} networkAddress: localhost - maxConnections: 4 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} diff --git a/Assets/Mirror/Examples/Cloud/TanksWithListServer/Prefabs/TanksNetworkManager.prefab b/Assets/Mirror/Examples/Cloud/TanksWithListServer/Prefabs/TanksNetworkManager.prefab index fac122a64..70ca5e452 100644 --- a/Assets/Mirror/Examples/Cloud/TanksWithListServer/Prefabs/TanksNetworkManager.prefab +++ b/Assets/Mirror/Examples/Cloud/TanksWithListServer/Prefabs/TanksNetworkManager.prefab @@ -96,11 +96,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: Assets/Mirror/Examples/Cloud/TanksWithListServer/Scenes/ListServerLobbySceneTanks.unity onlineScene: Assets/Mirror/Examples/Tanks/Scenes/Scene.unity transport: {fileID: 5098311272746915055} networkAddress: localhost - maxConnections: 4 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} @@ -130,4 +132,5 @@ MonoBehaviour: SendWindowSize: 128 ReceiveWindowSize: 128 debugLog: 0 - debugGUI: 0 + statisticsGUI: 0 + statisticsLog: 0 diff --git a/Assets/Mirror/Examples/Discovery/Scenes/Scene.unity b/Assets/Mirror/Examples/Discovery/Scenes/Scene.unity index 6ccacaa2e..658d03b64 100644 --- a/Assets/Mirror/Examples/Discovery/Scenes/Scene.unity +++ b/Assets/Mirror/Examples/Discovery/Scenes/Scene.unity @@ -416,11 +416,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: onlineScene: transport: {fileID: 1556883244} networkAddress: localhost - maxConnections: 4 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} diff --git a/Assets/Mirror/Examples/RigidbodyPhysics/Scenes/BounceScene.unity b/Assets/Mirror/Examples/RigidbodyPhysics/Scenes/BounceScene.unity index b7e61fcea..c18e0db66 100644 --- a/Assets/Mirror/Examples/RigidbodyPhysics/Scenes/BounceScene.unity +++ b/Assets/Mirror/Examples/RigidbodyPhysics/Scenes/BounceScene.unity @@ -262,11 +262,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: onlineScene: transport: {fileID: 492096634} networkAddress: localhost - maxConnections: 4 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} diff --git a/Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity b/Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity index 9023271bf..94aedc618 100644 --- a/Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity +++ b/Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity @@ -243,6 +243,8 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity onlineScene: Assets/Mirror/Examples/Room/Scenes/RoomScene.unity transport: {fileID: 2008127830} diff --git a/Assets/Mirror/Examples/Tanks/Scenes/Scene.unity b/Assets/Mirror/Examples/Tanks/Scenes/Scene.unity index b05f8dfd4..804c2415e 100644 --- a/Assets/Mirror/Examples/Tanks/Scenes/Scene.unity +++ b/Assets/Mirror/Examples/Tanks/Scenes/Scene.unity @@ -428,11 +428,13 @@ MonoBehaviour: autoStartServerBuild: 1 showDebugMessages: 0 serverTickRate: 30 + serverBatching: 0 + serverBatchInterval: 0 offlineScene: onlineScene: transport: {fileID: 1282001521} networkAddress: localhost - maxConnections: 4 + maxConnections: 100 disconnectInactiveConnections: 0 disconnectInactiveTimeout: 60 authenticator: {fileID: 0} diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 296126159..0116a66d8 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -123,7 +123,7 @@ public class NetworkManager : MonoBehaviour /// [FormerlySerializedAs("m_MaxConnections")] [Tooltip("Maximum number of concurrent connections.")] - public int maxConnections = 4; + public int maxConnections = 100; // This value is passed to NetworkServer in SetupServer /// diff --git a/Assets/Mirror/Tests/Editor/NetworkManagerTest.cs b/Assets/Mirror/Tests/Editor/NetworkManagerTest.cs index 11f73a852..4e4f4c73f 100644 --- a/Assets/Mirror/Tests/Editor/NetworkManagerTest.cs +++ b/Assets/Mirror/Tests/Editor/NetworkManagerTest.cs @@ -34,7 +34,7 @@ public void VariableTest() Assert.That(manager.serverTickRate, Is.EqualTo(30)); Assert.That(manager.offlineScene, Is.Empty); Assert.That(manager.networkAddress, Is.EqualTo("localhost")); - Assert.That(manager.maxConnections, Is.EqualTo(4)); + Assert.That(manager.maxConnections, Is.EqualTo(100)); Assert.That(manager.autoCreatePlayer, Is.True); Assert.That(manager.spawnPrefabs, Is.Empty); Assert.That(manager.numPlayers, Is.Zero);