Senior
What will be the delay between players on average and in the worst case?
sobes.tech AI
Answer from AI
The delay between players depends on many factors: network, server architecture, data exchange protocol, and players' geographical location.
On average, the delay (ping) between players on a local network or with a good internet connection is usually from 20 to 100 ms.
In the worst case — with a poor connection, large distance, or overloaded servers, the delay can reach several hundred milliseconds (300-500 ms and above), which significantly affects gameplay.
To minimize delays, the following are used:
- Using UDP instead of TCP for transmitting game data.
- Geographically distributed servers (regional).
- Optimization of protocols and synchronization algorithms.
Example: if players are in the same city, the delay can be about 30 ms, and if one player is in Europe and another in the USA — the delay can increase to 150-200 ms.