- Home /
Optimize iPad multiplayer?
Hello. I am developing a multiplayer game for the iPad (iPad 3 to be specific). I try to send absolutely as little data over the network as possible, but am still met with atrocious lag when playing between two iPads. How can I further optimize my network communications? Is there some way I can compress the data sent? Would switching to another networking solution, such as Photon, produce less overhead? What should I target as the max bytes/second?
Thanks
Are you sending data over wifi or radio? You can expect a great deal of lag if the iPads are using their radios to talk.
It makes sense to test if you are fighting network lag (impossible) or some client side lag (where you do something wrong). Build a testcase where you send just a timestamp and let the receiver reply asap. Do this 10x per second but nothing else. Check results. $$anonymous$$aybe network IS slow.
In Unity Networking, as far as I know, you have few chances to provoke client side lag. You could send too much for your bandwidth which will raise roundtrip times slowly. There is a sendrate, which probably influences how often RPCs and updates are sent. This could maybe 100ms worst case, if you do RPCs exactly after the previous send. You could delay replies in one way or another.
I'm sending over Wifi, as far as I know. tobiass, I will perform that test case and let you know the results as soon as I can.
Answer by enigma42 · Nov 28, 2012 at 09:26 PM
hey dunno for sure but maybe this can be of some help :
Your answer
Follow this Question
Related Questions
Reducing lag in networking. 1 Answer
Few questions regarding multiplayer! 1 Answer
Problem - player networking lags 2 Answers
Network Vibration Problem 1 Answer
Most efficient way to structure a huge online "virtual world" 0 Answers