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:
parent
50adf23be3
commit
51a39fa258
1 changed files with 1 additions and 1 deletions
|
@ -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)]);
|
||||
|
|
Loading…
Reference in a new issue