Delay with photon objective c client.
Options
Hi all,
We are trying to integrate photon objective c api in our iOS game.
We got values " 576 2000 162" for [mLoadBalancingClient RoundTripTime],[mLoadBalancingClient TimePingInterval], [mLoadBalancingClient RoundTripTimeVariance] respectively.
However with another game which uses photon unity network, RoundTripTime:90.
Did anybody try photon objective c APIs? How is the network performance?
Thanks
-Shakthi
We are trying to integrate photon objective c api in our iOS game.
We got values " 576 2000 162" for [mLoadBalancingClient RoundTripTime],[mLoadBalancingClient TimePingInterval], [mLoadBalancingClient RoundTripTimeVariance] respectively.
However with another game which uses photon unity network, RoundTripTime:90.
Did anybody try photon objective c APIs? How is the network performance?
Thanks
-Shakthi
0
Comments
-
Hi Shakthi.
The round trip time and variance of the objC clients should be about the same as with the PUN ones.
Please check, that you connect to the same server address / cloud region with the objC client as you do with the PUN one. Please also check that you are calling service() frequently enough.0 -
Hi Kaiserludi,
Thanks for the quick response.
What is optimum frequency of calling service. In my code its 10/second.
[NSTimer scheduledTimerWithTimeInterval:0.1f target:self selector:@selector(run userInfo:nil repeats:true];
-Shakthi0 -
The optimum depends a lot on your custom game logic.
You could try to set it to 20 times a second and see if it makes a difference on your rtt. If the rtt is still that bad, then it's not an issue caused by too few service() calls.0 -
Changing service rate does not help
[NSTimer scheduledTimerWithTimeInterval:1.0/20.0f target:self selector:@selector(run userInfo:nil repeats:true];
Still RoundTripTime: 2140 -
With calling service() 10 times a second you have had a rtt of 576, now with 20 times you have one of 214ms? Well, I would say, that it's definitely helping then, just 20 times still seems not to be enough in your case. Play a bit more around with that rate. 50 times a second would probably drop your rtt down to a value similar to the one that you have had in PUN.0
-
I can't confirm that. Actually, its varying in a range 197-3000
-
OK, what ping are you getting, when you are directly pinging the url to which you connect from the terminal?0
-
Ping app-asia.exitgamescloud.com
round-trip min/avg/max/stddev = 111.298/264.921/406.982/68.746 ms
AVG 264 ms. Do you think problem with network?0 -
So you have a ping of 264 without Photon, but your PUN client has a rtt of 90? Then your PUN client obviously connects to a different server address!0
-
OK. I will recheck and get back to you.0
-
Thanks,
We found service request WAS the issue.0 -
Thanks for the update.0