Is PUN based on Peer to Peer?

Options
I know that the server handles matchmaking and RPC, but is the gameplay itself P2P or is it handled by a server?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Arcanium,

    Thank you for choosing Photon!

    PUN is not peer-to-peer.
    PUN client connects to dedicated servers.
    The servers work as a relay and keep a room state as long as a room is alive.
  • Arcanium
    Options
    Hi @JohnTube,
    Thank you so much for your response! I Almost lost hope that anyone would help me out haha.

    If you don't mind I want to extend the question: You that the servers keep a room state alive, but Is the matchmaking process and sending data between users in the same room P2P or is it also handled through the dedicated servers? Also, is the "Master" player the one handling all the processes or is he irrelevant?

    Context: We're working on a real-time racing game with powerups that match 5 players together in the same room based on the race mode they chose.

    I Really hope to hear from you again!
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Arcanium,

    Is the matchmaking process and sending data between users in the same room P2P or is it also handled through the dedicated servers?
    Everything is handled through the dedicated servers.
    Matchmaking is done on the Master Server.
    Rooms are on the Game Server.
    Client switches servers as needed.
    is the "Master" player the one handling all the processes or is he irrelevant?
    Master server is a normal client. It can be used for "lightweight pseudo authoritative logic" as the server always guarantees a unique master client per room whenever the room is not empty.
    Read more about "Master Client and Host Migration".