mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-22 03:05:16 +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) {
|
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)]);
|
||||||
|
|
Loading…
Reference in a new issue