Tcp is connection based so it's really good for chat or login or anything that needs reliability. Udp should be used for lots of small packets like position packets... The problem is that in a game like what I'm doing right now (terraria like), I can't decide what to use and how to use it properly. I though about using both at the same time, but can't find a way to ensure the udp "connection" will work.
If I were to choose UDP, is there a way I could make a "connection" out of it? to rely on it for login or chat messages?
And if I were to use TCP, would there be a way to speed it up?
More info : I'm doing this in C#.NET with XNA (I know it's no longer developped but I like it :P). I would also like to use Serialized objects (.Net BinaryFormatter), but it uses streams, and stream are only available in TCP... which makes it more attractive...
Thanks a lot!