#Best Possible Way To Create Multiple Instances

1 messages · Page 1 of 1 (latest)

tepid sable
#

How to handle concurrent games, currently I am opening a new Unity instance for every game but it is very resource consuming as you can guess. NetworkManager doesn't support multiple instances/singletons as far as i know.

#

I want to make server handle multiple games at once

broken herald
#

Really depends on the type of game. It will be easier with a card game than a fps game. A turn based game will be able to handle a lot more concurrent players with multiple matches going on.

But it's way way easier to just have multiple servers running on a machine than it will be to start juggling ports and client connections manually. The dedicated server package has tools that will help you strip down server builds so they less resource intensive.

loud schooner
tepid sable
tepid sable
broken herald
# tepid sable Its a turn based game, is there a way to handle it.

There is always a way. You can have your server open a new session for each match. And a main session for the network. Players will join the match lobby and once its full the server can have the join the network session and begin the match. The server can use the lobby id as a match id

tepid sable
#

This is the thing that i am doing rn

#

Exactly the thing to be clear

#

But its resource consuming

#

Its very inefficient

#

If i could open up different matches in single session it would be perfect

#

I was looking for this

broken herald
#

when i say a new session, i don't mean a new unity process. this is all in the one unity server. it can make multiple lobbies for matches

tepid sable
#

i couldnt find anything like that

#

opening seperate sessions

#

networkmanager supports single instance

broken herald
#

I believe only one can have a network though. With a direct server connection, in theory, you should be able to have the server listen on different ports. I've never tested multiple network connections on a server before.