Overhaul client latency calculations.
The ping/pong orders are replaced with a dedicated (and much smaller) Ping packet that is handled directly in the client and server Connection wrappers. This allows clients to respond when the orders are processed, instead of queuing the pong order to be sent in the next frame (which added an extra 120ms of unwanted latency). The ping frequency has been raised to 1Hz, and pings are now routed through the server events queue in preparation for the future dynamic latency system. The raw ping numbers are no longer sent to clients, the server instead evaluates a single ConnectionQuality value that in the future may be based on more than just the ping times.
This commit is contained in:
@@ -19,6 +19,7 @@ namespace OpenRA
|
||||
public enum OrderType : byte
|
||||
{
|
||||
Ack = 0x10,
|
||||
Ping = 0x20,
|
||||
SyncHash = 0x65,
|
||||
Disconnect = 0xBF,
|
||||
Handshake = 0xFE,
|
||||
|
||||
Reference in New Issue
Block a user