recently have been working on multiplayer networking app. had implemented client server model using bonjour services , nsstream objects. 2 way communication has been done successfully.
the problem i'm facing is: 2 devices running app connected via local wifi. there latency problem while sending messages client server , vice versa.
describing in brief:
- it's car racing game @ 2 players.
- one server , other client.
- when client press buttons particular message sent server telling key or button pressed. server responds accordingly , make changes on client's car on server itself. these changes not same. there difference between actual location of car on client's screen , in server screen.
any ideas?
welcome world of networking. :)
these classic difficulties game networking programming. there's lot of different techniques overcome these issues.
this blog has great info on subject , out.
http://gafferongames.com/networking-for-game-programmers/
you may interested in article:
good luck!
Comments
Post a Comment