From 8fd677454910a6e3ea2db3d8b83d6fa6ace2008a Mon Sep 17 00:00:00 2001 From: Reinisch Date: Thu, 24 Nov 2016 17:56:10 +0300 Subject: [PATCH] Changed Photon settings to best region --- .../Resources/PhotonServerSettings.asset | 2 +- Assets/Scripts/Networking/DarkestPhotonLauncher.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Photon Unity Networking/Resources/PhotonServerSettings.asset b/Assets/Photon Unity Networking/Resources/PhotonServerSettings.asset index 8708a4e1..03fa0413 100644 --- a/Assets/Photon Unity Networking/Resources/PhotonServerSettings.asset +++ b/Assets/Photon Unity Networking/Resources/PhotonServerSettings.asset @@ -11,7 +11,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 9f3758f8f58fdef43803eb9be1df0608, type: 3} m_Name: PhotonServerSettings m_EditorClassIdentifier: - HostType: 1 + HostType: 4 Protocol: 0 ServerAddress: ServerPort: 5055 diff --git a/Assets/Scripts/Networking/DarkestPhotonLauncher.cs b/Assets/Scripts/Networking/DarkestPhotonLauncher.cs index 93802dfc..e1a7778f 100644 --- a/Assets/Scripts/Networking/DarkestPhotonLauncher.cs +++ b/Assets/Scripts/Networking/DarkestPhotonLauncher.cs @@ -119,6 +119,10 @@ void Awake() // Auto sync loaded level with master client PhotonNetwork.automaticallySyncScene = false; + + PhotonNetwork.MaxResendsBeforeDisconnect = 10; + + PhotonNetwork.QuickResends = 3; } else Destroy(gameObject);