So, I’ve been experimenting with networking using kryonet, and I have written a really simple 2-client demo, basically just giving each other coordinates as they move.
My question is, in what way should I write my client-server architecture?
Should I convert to UDP and use datagrams, or should I stick with TCP and write a player object with all the information needed inside, and send that?
Do I send updates at the same rate as I render, less often, etc? (updates are sent on the render thread every 6 frames through the client object, but it receives in it’s own thread, I know I could write this based on a timer in the client thread or in it’s own send thread as well, but I don’t know how necessary that is)
All I really need are some good resources. Feel free to post examples if you have written network code before. (I’m not interesting in interpolation or anything as of right now, I just want something usable, I’m more interested in the networking side, rather than what a user would see, as the only user is myself)