Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
Better idea: let's use NTP!
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
SCTP is actually nice because it's like reliable UDP, but it isn't implemented by default on Windows.
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
Many games actually use both TCP (login, map data, etc) and UDP (physics, positions), and I don't think it would be slower in any way.
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
If you don't feel like using both TCP and UDP, you can make UDP more reliable by putting message numbers in important messages and have the client confirm to the server that they've received the messages in the right order. If the client loses one or receives one out of order, the server resends that message. It may be a bit tricky to get right, but it works. I still think it would be better and easier if you just used both TCP and UDP.
Posts: 5,683
Threads: 413
Joined: Aug 2012
Reputation:
0
Yes, but not respawning.
Carcade's leaderboard also needs even MORE work. It works fine... until someone leaves the game.