At 2/24/14 03:25 PM, Glaiel-Gamer wrote: They're both built on top of IP, the speed difference is not as significant as it seems at first, most of the delay in TCP comes from if it loses a packet, the endpoint needs to wait till the missing packet arrives before it can continue processing the new ones (since not only are the packets guaranteed to arrive, but guaranteed to arrive in order), but packet loss is pretty rare in the first place (unless your connection is really shitty to begin with), and even 3-4% packet loss can significantly affect a multiplayer game.
I would say most of the waiting comes from ACK. Also the fact that the packets generally have a large (comparatively-speaking) header that needs to be parsed out before any real information is actually given. Processing power/wait time is larger compared to UDP. I'd still use UDP for things that require a lot of packets and don't matter if something happens to them.
Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P
