Re: TCP long delay before re-transmission
Posted: Mon Aug 12, 2019 11:55 am
TCP looks fast enough for me, I need to send data at 20ms intervals, the send usually takes about 2ms, plus I can buffer some data, so there looks to be enough headroom. The problem happens only when it needs to resend after failed send, ESP waits for about 1 seconds before resend, which is an extremely long time. I believe there should be some way of changing this, does someone know how?
rudy wrote:I have not looked at faster TCP options.
With games, TCP is too slow for quickly changing events. And what is often done is using UDP with multiple sends. A message ID count is used to determine if it has already been received. If it has it throws away the duplicate messages. Typically three messages are sent (with slight delays) and that should take care of any recoverable situations.