mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkManager.MaxConnections default increased from 4 to 100 (#2569)
This commit is contained in:
parent
41753fc83c
commit
e98a12b499
@ -1747,11 +1747,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene:
|
offlineScene:
|
||||||
onlineScene:
|
onlineScene:
|
||||||
transport: {fileID: 1661834280}
|
transport: {fileID: 1661834280}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 4
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
|
@ -185,11 +185,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene:
|
offlineScene:
|
||||||
onlineScene:
|
onlineScene:
|
||||||
transport: {fileID: 249891955}
|
transport: {fileID: 249891955}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 16
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
|
@ -2942,11 +2942,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene:
|
offlineScene:
|
||||||
onlineScene:
|
onlineScene:
|
||||||
transport: {fileID: 1783103023}
|
transport: {fileID: 1783103023}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 4
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
|
@ -96,11 +96,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene: Assets/Mirror/Examples/Cloud/TanksWithListServer/Scenes/ListServerLobbySceneTanks.unity
|
offlineScene: Assets/Mirror/Examples/Cloud/TanksWithListServer/Scenes/ListServerLobbySceneTanks.unity
|
||||||
onlineScene: Assets/Mirror/Examples/Tanks/Scenes/Scene.unity
|
onlineScene: Assets/Mirror/Examples/Tanks/Scenes/Scene.unity
|
||||||
transport: {fileID: 5098311272746915055}
|
transport: {fileID: 5098311272746915055}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 4
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
@ -130,4 +132,5 @@ MonoBehaviour:
|
|||||||
SendWindowSize: 128
|
SendWindowSize: 128
|
||||||
ReceiveWindowSize: 128
|
ReceiveWindowSize: 128
|
||||||
debugLog: 0
|
debugLog: 0
|
||||||
debugGUI: 0
|
statisticsGUI: 0
|
||||||
|
statisticsLog: 0
|
||||||
|
@ -416,11 +416,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene:
|
offlineScene:
|
||||||
onlineScene:
|
onlineScene:
|
||||||
transport: {fileID: 1556883244}
|
transport: {fileID: 1556883244}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 4
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
|
@ -262,11 +262,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene:
|
offlineScene:
|
||||||
onlineScene:
|
onlineScene:
|
||||||
transport: {fileID: 492096634}
|
transport: {fileID: 492096634}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 4
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
|
@ -243,6 +243,8 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene: Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity
|
offlineScene: Assets/Mirror/Examples/Room/Scenes/OfflineScene.unity
|
||||||
onlineScene: Assets/Mirror/Examples/Room/Scenes/RoomScene.unity
|
onlineScene: Assets/Mirror/Examples/Room/Scenes/RoomScene.unity
|
||||||
transport: {fileID: 2008127830}
|
transport: {fileID: 2008127830}
|
||||||
|
@ -428,11 +428,13 @@ MonoBehaviour:
|
|||||||
autoStartServerBuild: 1
|
autoStartServerBuild: 1
|
||||||
showDebugMessages: 0
|
showDebugMessages: 0
|
||||||
serverTickRate: 30
|
serverTickRate: 30
|
||||||
|
serverBatching: 0
|
||||||
|
serverBatchInterval: 0
|
||||||
offlineScene:
|
offlineScene:
|
||||||
onlineScene:
|
onlineScene:
|
||||||
transport: {fileID: 1282001521}
|
transport: {fileID: 1282001521}
|
||||||
networkAddress: localhost
|
networkAddress: localhost
|
||||||
maxConnections: 4
|
maxConnections: 100
|
||||||
disconnectInactiveConnections: 0
|
disconnectInactiveConnections: 0
|
||||||
disconnectInactiveTimeout: 60
|
disconnectInactiveTimeout: 60
|
||||||
authenticator: {fileID: 0}
|
authenticator: {fileID: 0}
|
||||||
|
@ -123,7 +123,7 @@ public class NetworkManager : MonoBehaviour
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[FormerlySerializedAs("m_MaxConnections")]
|
[FormerlySerializedAs("m_MaxConnections")]
|
||||||
[Tooltip("Maximum number of concurrent connections.")]
|
[Tooltip("Maximum number of concurrent connections.")]
|
||||||
public int maxConnections = 4;
|
public int maxConnections = 100;
|
||||||
|
|
||||||
// This value is passed to NetworkServer in SetupServer
|
// This value is passed to NetworkServer in SetupServer
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -34,7 +34,7 @@ public void VariableTest()
|
|||||||
Assert.That(manager.serverTickRate, Is.EqualTo(30));
|
Assert.That(manager.serverTickRate, Is.EqualTo(30));
|
||||||
Assert.That(manager.offlineScene, Is.Empty);
|
Assert.That(manager.offlineScene, Is.Empty);
|
||||||
Assert.That(manager.networkAddress, Is.EqualTo("localhost"));
|
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.autoCreatePlayer, Is.True);
|
||||||
Assert.That(manager.spawnPrefabs, Is.Empty);
|
Assert.That(manager.spawnPrefabs, Is.Empty);
|
||||||
Assert.That(manager.numPlayers, Is.Zero);
|
Assert.That(manager.numPlayers, Is.Zero);
|
||||||
|
Loading…
Reference in New Issue
Block a user