I have a game and basically, the client will send its player location every draw loop, and the server will send it back (the server sends to all the clients). Then the client gets it back and says "if the player the server gave me isn't myself then use it. I have a problem because if I have one client joining the server the client will get the locations up to date but if I have two clients then all the sudden there will be lag and if I move the character the location will update like 10 seconds later. Does anyone know why this is happening and how to fix it? Thanks.
↧