mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
stuff
This commit is contained in:
parent
4d50945e01
commit
0922a0a150
@ -80,6 +80,7 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart
|
||||
|
||||
{
|
||||
_steamTransport = gameObject.AddComponent<FizzySteamworks>();
|
||||
_steamTransport.UseNextGenSteamNetworking = false;
|
||||
}
|
||||
|
||||
transport = QSBCore.UseKcpTransport ? _kcpTransport : _steamTransport;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user