[Photon Realtime - C++ iOS] High ping!
Options
Hello,
We notice the ping is always around 500 ms all the time. We use: getRoundTripTime() to get the ping (in ms).
http://doc-api.exitgames.com/en/chat/cu ... 43b49671bd
Scenarios:
- 1 player mode, player's idle, 500 ms. (No broadcast message)
- 1 player mode, player spams (mass send, raiseEvent) broadcast message to all += < 10ms differences, i.e 490 - 510 ms
- 2 players mode, player's idle, 500 ms. (No broadcast message)
- 2 players mode, players spam (mass send, raiseEvent) broadcast message to all += < 10ms differences, i.e 490 - 510 ms
- Tested on different regions: on eu, us, asia, jp and au.
- Tested on iphone4s and iphone6.
- Tested on 3g and wifi.
Is this normal? Why the ping is so high?
We notice the ping is always around 500 ms all the time. We use: getRoundTripTime() to get the ping (in ms).
http://doc-api.exitgames.com/en/chat/cu ... 43b49671bd
Scenarios:
- 1 player mode, player's idle, 500 ms. (No broadcast message)
- 1 player mode, player spams (mass send, raiseEvent) broadcast message to all += < 10ms differences, i.e 490 - 510 ms
- 2 players mode, player's idle, 500 ms. (No broadcast message)
- 2 players mode, players spam (mass send, raiseEvent) broadcast message to all += < 10ms differences, i.e 490 - 510 ms
- Tested on different regions: on eu, us, asia, jp and au.
- Tested on iphone4s and iphone6.
- Tested on 3g and wifi.
Is this normal? Why the ping is so high?
0
Comments
-
Hi ssrobin.
How often do you call service()?
2 times per second?
Then the best ping that you can achieve is about 500ms as the Photon Client can't measure the receive time of an acknowledgement before it actually reads that command from the socket and puts it into its own incoming queue. However this happens inside of serviceBasic() which gets called by service() (or can also get called directly by you).
So your serviceBasic() frequency determines what is the best ping that you can hope for.0 -
Hi Kaiserludi,
Yes, I called it 2 times per second. Got it now. Thanks.0