Remove scheduler sleeps from RUDP body bursts
This commit is contained in:
parent
d018bb1fb5
commit
2afec5c5dc
4 changed files with 6 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue