Original Post
hi! I wrote a little multiplayer game. It's a simple 2D game simmilar to dyna blaster. each player can run on the map and place bombs. The problem is that I use a very simple algorithm to for the communication. In each frame each player must send his key state to the server and then server sends keys of all players to each of them. Players can render new frame. It is very good to keep the game synchronized. But as you probably already see this method will fail if the latency will be greater than 30ms (I run this game with 30fps). I perform 30 send(...) commands each second. It is to much! Players must wait for the server to deliver the new keys and the real game frame rate drops to 10fps or something like this. I want to change my algorithm that it will only send changes of the keyboard states. I don't know how to keep it synchronized so each of the players will render exactly the same number of frames. carl