I'm currently trying to do an online game with real time and I encounter an issue with synchronization between the different players; the game is not the same on all computers.
I would like to have some info on the differents approach that are used to ensure synchronization in online game.
My game is Pong.
Actually, each player run a different simulation on his computer and the input from the other player are sent to him. Because the travel time of the packet between the different computer are not the same, the game become out of sync.
A solution for the message synchronization problem of the client-server based game system is to wait for a certain period of time (waiting period) until the server processes the messages from clients.
Here is a solution but I want to know if there anything else I can do.