Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Matchmaker and Multiplay

Discussion in 'Matchmaker' started by orcunsari, Apr 29, 2023.

  1. orcunsari

    orcunsari

    Joined:
    Jul 21, 2016
    Posts:
    23
    Hi, I have game server structure where it allows multiple lobbies in a single server instance. So I want matched players to join that single particular server if there is a available lobby. How can I implement that? Is this supported within Multiplay service?
     
    romhaviv likes this.
  2. romhaviv

    romhaviv

    Joined:
    Apr 22, 2019
    Posts:
    17
    I believe we're facing the same issue, (see my thread)
    Multiplay can support that, because its your server and you can do whatever you want inside it (including creating many lobbies).
    but I guess the problem is with the Matchmaker, once a match is created, the amount of "groups" cannot be changed.
    Hope I'm wrong.
     
  3. orcunsari

    orcunsari

    Joined:
    Jul 21, 2016
    Posts:
    23
  4. orcunsari

    orcunsari

    Joined:
    Jul 21, 2016
    Posts:
    23
  5. romhaviv

    romhaviv

    Joined:
    Apr 22, 2019
    Posts:
    17
    Yea Multiplay supports multiple server instances on one machine, cloud solution does that automatically for you which is really nice (try to play with multiplay build config and fleets).
    problem in my opinion, is that these servers could be combined to just 1 server handling many matches at the same time and use the resources (ram/cpu) in a more efficient way. (especially when there are not too many players in a match and the server is actually capable of handling hundreds of them).
     
  6. orcunsari

    orcunsari

    Joined:
    Jul 21, 2016
    Posts:
    23
    But I think it is not possible for you to join existing allocated server using Matchmaker. Also handling multiple lobbies on one server or handling single game per server should be basically same if they run on a single machine. Also if you don't have multiple lobbies per server you drastically improve development time.
     
  7. orcunsari

    orcunsari

    Joined:
    Jul 21, 2016
    Posts:
    23
    In my case I will have matches like CS:GO or TF2 so opening multiple server on one machine would be beneficial for my case
     
  8. romhaviv

    romhaviv

    Joined:
    Apr 22, 2019
    Posts:
    17
    You can join existing allocated server using Matchmaker with backfilling :)

    For my use case running a whole server instance consumes way more resources than just virtually creating another match.
    There are battles of 1v1 and one instance of a server can host 100 of them, so why should we create 100 instances? sounds like a big waste of resources to me.
    Also since we already support multiple matches on 1 server, development time is not the issue for us.

    But overall sounds like matchmaker could benefit your use case and most other games who have matches of many players, keeping it simple doing 1 match in 1 server.
     
  9. orcunsari

    orcunsari

    Joined:
    Jul 21, 2016
    Posts:
    23
    My server doesn't consume much resources for the base usage so it should be okay for me to host 10 server per machine; it can handle up to 18 players per match. However, if I can figure out how to add more players to the existing server and create matches within it, I will definitely do so. Let's stay in touch if you figure it out.
     
    romhaviv likes this.