xna-cncnet-client icon indicating copy to clipboard operation
xna-cncnet-client copied to clipboard

Optimize game netcode settings automatically

Open CnC-RaVaGe opened this issue 5 years ago • 2 comments

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.

CnC-RaVaGe avatar May 27 '20 12:05 CnC-RaVaGe

What values would you suggest?

Metadorius avatar Jul 26 '20 23:07 Metadorius

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.

CnC-RaVaGe avatar Jul 26 '20 23:07 CnC-RaVaGe