Remove scheduler sleeps from RUDP body bursts

This commit is contained in:
Meta Vens 2026-07-19 16:28:06 +01:00
commit 2afec5c5dc
4 changed files with 6 additions and 6 deletions

View file

@ -1995,7 +1995,7 @@ namespace GameCult.Networking
{
SendPacket(packets[index]);
if ((index + 1) % WireBurstPackets == 0 && index + 1 < packets.Count)
Thread.Sleep(1);
Thread.Yield();
}
}
@ -2408,7 +2408,7 @@ namespace GameCult.Networking
{
SendPacket(peer.RemoteEndPoint, packets[index]);
if ((index + 1) % WireBurstPackets == 0 && index + 1 < packets.Count)
Thread.Sleep(1);
Thread.Yield();
}
}