Is there a way to figure out the Best cloud server?

Is there some kind of way or a function that returns a CloudRegionCode with the best server? I need it to compare with PhotonNetwork.CloudRegion. I've looked through the documentation and I can't seem to find something useful.

Comments

  • I required some digging but I found it!
    PhotonHandler.BestRegionCodeInPreferences
  • Hi @sorensaket,

    you can set up the PhotonServerSettings to ping all cloud regions and connect to the best one (lowest ping). The result of Best Region is then stored in PhotonHandler.BestRegionCodeInPreferences and is furthermore stored in the PlayerPrefs, too, in order to skip the Best Region test next time the application is launched and connect to that stored region immediately.