This is a Java related question.
I've got this question and I searched on the internet but didn't really get any clear answer.
I want to develop a little multyplayer game which needs real time synchronization for a few clients. I don't really want to have a lot of clients, but I want to have the chance to create it for a greater scale later.
Seeing through some Links (also given here from stackexchange) I got the answer that UDP would be better, then others say TCP. I know it's sometimes more an opinion thing what you prefer most for yourself.
But I've developed some network games in the past (not proffessional ;) ) and used TCP. And I didn't really get a lagfree game, even for three clients (players)
I then used the new nio (asynch) network framework of java, but the lag just reduced a little bit.
So how can I develop a reliable Server-Client model? Using TCP or UDP? Or did I just end up developing a bad example and thats why my server-client communication lagged?
If someone has a good tutorial for developing a reliable java game server that would be nice.