Limit Number of Player in a Room

Hi Everyone,

I am developing a multiplayer game where a player create a room with the 100 Max Player. And all other players join the same room.

Is this possible that 100 players can connect with the same room?
If No Then, Is there any way to full fill this kind of requirement.
I am ready to purchase license version of PUN.

Thank you

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Ravi_Sharma,

    Thank you for choosing Photon!

    I would suggest you try Photon Chat which could handle that number of users per channel.
    PUN and Photon Realtime simply cannot do that.
  • Ravi_Sharma
    edited October 2018
    Thank you @JohnTube :)

    Can we sync object position using Photon Chat?

    One more question I would like to ask you, Photon server can connect 100 users to same room at a time?
  • 3dArtist
    3dArtist
    edited November 2018
    In my case one player object sending data to the other 49 players in the world.
    49 player does not send any data.
    So can I will use Photon unity networking (PUN)?
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited November 2018
    Hi @Ravi_Sharma,

    Sorry for the delay, I missed your comment as I was on vacation at that time!

    Can we sync object position using Photon Chat?
    Yes but unlike PUN this is not built-in you need to do it yourself. Also, you should know that Photon Chat has a lower messages/second soft limit that Photon Realtime/PUN:

    - Photon Chat: 100 message / second / channel
    - Photon Realtime / PUN: 500 message / second / room

    Photon server can connect 100 users to same room at a time?
    You mean self-hosted Photon Server? when yes in theory but it's not recommended. You could always test to see if it works well or not.

    Hi @3dArtist,

    Thank you for choosing Photon!

    So can I will use Photon unity networking (PUN)?
    You can do the math and it depends on how many messages you will send per second:
    F: how many times you are sending per second
    X: the total number of messages per room per second
    X = F * 50, multicast: 1 message from the sender to server + 49 messages from the server to receivers
    X = F * 51, broadcast: 1 message from the sender to server + 50 messages from the server to all joined actors including sender
    To stay below the 500 messages / second / room soft limit, F <= 10 (multicast) or F <= 9 (broadcast)
  • Hi,
    Thanks for the detailed information.