Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Is it cheaper data wise to delete a lobby and recreate, versus reuse?

Discussion in 'Lobby' started by luniac, Oct 28, 2023.

  1. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    611
    I have a 2 player game like tic tac toe for example.

    if the client disconnects, the easiest solution it seems is to just delete the lobby and the both the host and client can search for a new game.

    or I can have the host wait for a new client to join and start a new game but this will be more complex programming wise cause I’ll have to reset stuff maybe

    it’s easier to just destroy the lobby and return to the bootstrap scene.

    but will this constant creating and destroying lobby be more expensive data wise versus maintaining an existing lobby?
     
  2. Punfish

    Punfish

    Joined:
    Dec 7, 2014
    Posts:
    383
    For something this small you may as well host hundreds of lobbies on one server(executable), that would be the most ideal route.
     
  3. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    611
    I don’t know how to manage server stufff lol
    That’s why I’m using unitys systems.