ghandhikus wrote:Fostik wrote:Yes, of course game uses UDP protocol for client-server iterations, TCP is too slow for games.
It's really ultra laggy
Have you tried to ping game server? game.havenandhearth.com
I am actually a game programmer and I know that TCP is not slow. It only can be slow on bad or very slow connection, where as problem is far worse on UDP actually. Nowdays people have 100MB+ internet connections and choice of UDP will always be weird.
I think there are some reasons to use UDP, like real time voice transmission etc. no point in sending the data more than once. But with a game like HnH I don't think it would matter too much even if TCP was just being used for everything. I can't recall exactly but HnH has some kind of TCP-like thing on top of UDP anyways, at least for some messaging.
IIRC QUIC protocol originates from this idea.
It's not that UDP would be "better", and used because of that, but because of compatibility.