Synchronization in multiplayer networked game?
问题 Recently I have been working on a multiplayer networking app. I had successfully implemented the client server model using Bonjour services and NSStream objects. The two way communication has been done successfully. The problem I'm facing is: the two devices running the app are connected via local wifi. There is a latency problem while sending the messages from client to server and vice versa. Describing in brief: It's a car racing game with at most two players. One server and other client.