0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-21 18:55:17 +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) {
Task.Run(async () => {
await Task.Delay(5000);
await Task.Delay(2000);
header.Id = ownId;
MemoryMarshal.Write(owner.Memory.Span[..Constants.HeaderSize], ref header);
await stream.WriteAsync(owner.Memory[..(Constants.HeaderSize + header.PacketSize)]);