This commit is contained in:
_nebula 2023-06-11 01:15:58 +01:00
parent 4d50945e01
commit 0922a0a150
2 changed files with 4 additions and 2 deletions

View File

@ -80,6 +80,7 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart
{
_steamTransport = gameObject.AddComponent<FizzySteamworks>();
_steamTransport.UseNextGenSteamNetworking = false;
}
transport = QSBCore.UseKcpTransport ? _kcpTransport : _steamTransport;

View File

@ -247,7 +247,7 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
}
}
const int MAX_MESSAGES = 100;
const int MAX_MESSAGES = 200;
int currentMessage = 1;
@ -255,12 +255,13 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
IEnumerator SendPacketLossTest()
{
currentMessage = 1;
DebugLog.DebugWrite($"STARTING DROPPED MESSAGE TEST...");
while (currentMessage <= MAX_MESSAGES)
{
new PacketLossTestMessage().Send();
currentMessage++;
yield return new WaitForSeconds(0.25f);
yield return new WaitForSeconds(0.1f);
}
}
}