Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

How many connections to the brouser-based server can be?

Discussion in 'Multiplayer' started by Neodrop, Jan 21, 2009.

  1. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,359
    How many connections to the brouser-based server can be?

    If I run server in the brouser composition, how many clients can connect to this Server? I can't find this information in docs and in the forum...
     
  2. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    I don't think there's a difference with a standalone app on this area.

    I'll depend on your Network.InitialiseServer function that specifies the max. amount of allowed users.
     
  3. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,359
    Well, what to happen, if I set max connection value to 500 ?
    I mean, how many connections can be at maximum?
     
  4. jashan

    jashan

    Joined:
    Mar 9, 2007
    Posts:
    3,307
    The usual answer to this type of question: The number of players depends extremely on your type of game and how you implement it. If you're game is just a chat, you can probably have 1000 players without a problem. If your game is a highly action-based super-synchronized shooter you might run into trouble with 10 players.

    That's why it's very unlikely that you'll find any kind of information about this anywhere in the docs.

    Personally, I get browser-crashes when I try to run my server in the browser but couldn't care less (I think the last time I tried this was about a year ago ;-) ). The thing is: If you have the server in the browser, you usually need to assume that you'll have a low-end machine, so I'd rather play it safe with such a setup (I wouldn't go for more than 20 players - but again: this extremely depends on the type of game and networking you're after).

    Of course, you can set max connection value to 1000 or more if you wish - but you'll probably have a hard time testing this ;-)