0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-25 12:45:18 +00:00

Lower delay on test client

This commit is contained in:
Sanae 2022-03-22 04:09:00 -06:00
parent 50adf23be3
commit 51a39fa258

View file

@ -78,7 +78,7 @@ async Task S(string n, Guid otherId, Guid ownId) {
} }
if (type == PacketType.Player) { if (type == PacketType.Player) {
Task.Run(async () => { Task.Run(async () => {
await Task.Delay(5000); await Task.Delay(2000);
header.Id = ownId; header.Id = ownId;
MemoryMarshal.Write(owner.Memory.Span[..Constants.HeaderSize], ref header); MemoryMarshal.Write(owner.Memory.Span[..Constants.HeaderSize], ref header);
await stream.WriteAsync(owner.Memory[..(Constants.HeaderSize + header.PacketSize)]); await stream.WriteAsync(owner.Memory[..(Constants.HeaderSize + header.PacketSize)]);