Currently i am working on a project with photon network. I have only one problem. The problem is about latency and high ping. My ping is around 108 ms and more. This ping causes latency in my game. I use ;
this settings to update the rotation and the current place of my player. It works very well but i thought that network player sees last the position of my player late due to high ping. I have tried many way and i have also tried to test the demo versions of photon in the package. They also have the same ping and have the same latency. I use the photon server settings below;
and when i make changes in this setting, it seems that it doesn’t affect the ping much. By the way, i live in Turkey. What can i do to decrease the ping or decrease the latency?
Outside of physically moving closer to the server you’re connecting to, the only other thing really is to try and get the Photon guys to add another server closer to you.
Your location in relevance to server location is the biggest factor of how much lag you’ll have. Some countries also have worse connections than others (not sure where Turkey is on that list), but that’s up to individual governments.
Just remember that data has to travel a physical distance, and that’s where the lag comes from. You then also have to factor in the wiring, and that’s where each country could be better than others.
Imagine if both players were right next to each other (as in they live next door to each other). If your game only uses dedicated servers, that means their data is going away from each other, and then back. It would probably be best to have both options (dedicated servers and player hosted matches) just in case it would be less laggy.
I live in Turkey and my photon ping is around 100-130 ms. It causes too much latency with my project. Whatever i try i couldn’t solve it. Sure i can post it to your forum but you answer the questions too late in your forum. Do you have any solution about how to decrease latency? Besides, i have just seen that you have new product in the name of True Sync. I would like to try it but i think i need to change so many thing with my project. How can i easily switch from normal photon network to True Sync packet.
As far as I remember photon cloud has no turkey located server, so your would play on a europe server which explains your high ping. You can also use selfhosted photon server (loadbalancing API) and host it in turkey or any region you want.
Thanks for the idea Kamil. It’s going to be a global game and i am not only curious about latency problem in Turkey but also i am curious latency problem in some other countries. I should actually do something to solve this by using photon server(by having the game’s data communication with photon server). I don’t know how to do that for now, but i am still searching for it. Besides of Photon’s True Sync package, i have also found Unity Network useful. Now i am doing tests with Unity network and if i solve latency problem with it, i think i will turn my network package into Unity network and will stop working with Photon. Besides of that, i want to thank the photon communication from here. They are really caring their customers. They answer a question in their forum within a week. Thats really boring and caused me to stay away from Photon…
We try to keep up with the questions as good as we can but we (Exit Games) can’t answer all questions.
So to pickup bekiryanik’s remark: Thanks everyone who’s sharing knowledge here (and elsewhere). You guys are best!