"Best Region" selection is done by default when you use PhotonNetwork.ConnectUsingSettings().Īside from automatically saving the results in the player preferences, the workflow is the same as in the Realtime API. To access the list of regions or to override previous results, refer to the API Reference for regions. It enables you to change the list of regions available to players on demand. Using Best Region works well with the server-side Region Filter in the Dashboard. If either applies, all regions are pinged and a new result gets picked. if the ping is no longer acceptable (>= 1.5x slower than previously saved reference value) if the region list changed (covers the case if the "previous best region" is still available)ī. If a previous result is available, the client will check:Ī. Without results from a previous session, all regions will be pinged, which takes a moment longer. The summary string includes the current best region, its ping and the current regions list. This is used to get an up-to-date regions list and check if the saved Best Region -if any- is still available.Īfter pinging the servers, the results are summarized in a string which should be saved on the device for later use. To do so, the clients always fetch the list of available regions from the Name Server on connect. Photon Realtime can detect the Best Region to connect to and enables you to stick to that region. PUN and Photon Voice rely on the Realtime API layer to pick the Best Region. In the Dashboard, you can define which regions should be available for the clients. The full list of available regions is below. The initial connection of clients goes to a Photon Name Server, which provides the list of available regions.Įach region is completely separate from the others and consists of a Master Server (for matchmaking) and Game Servers (hosting rooms). Photon Cloud provides you with global connectivity to allow low latency gaming all around the world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |