xna-cncnet-client
xna-cncnet-client copied to clipboard
Optimize game netcode settings automatically
The client could optimize the game net-code settings automatically at the game start based on measured latency, between players (P2P) and the tunnel server.
Based on the average ping/latency the client can set the /FrameSendRate and /MaxAhead values optimally.
Through long term experimentation of setting these values, I've seen that it's possible to reduce stutter in high latency games with a lot of players and maximise game responsiveness in a low latency game with very few players.
What values would you suggest?
Average Latency > 150 Set FrameSendRate to 10 & MaxAhead at 30 (default). Average Latency <= 150 Set FrameSendRate to 8 & MaxAhead at 30 (default). Average Latency <= 110 Set FrameSendRate to 6 & MaxAhead at 30 (default). Average Latency <= 80 Set FrameSendRate to 4 & MaxAhead at 20. Average Latency <= 60 Set FrameSendRate to 2 & MaxAhead at 10.