I’m wondering how to run multiple games on a single C++ custom dedicated server.
On “GameLift Server API reference for C++: Actions” documentation ( GameLift Server API reference for C++: Actions - Amazon GameLift )
I can read:
ProcessReady() → processParameters → port: “Port number that the server process is listening on” (it seems there is no way to specify a port range).
I can also read:
GetGameSessionId() → “Retrieves a unique identifier for the game session currently being hosted by the server process, if the server process is active.” (again the singular is used).
I can deduct that the SDK is able to handle only one GameSession.
My question is: should I start several distinct processes each one handling its own GameSession (with an incredible waste of resources, moreover memory) or is the SDK thread safe letting me, from a single process, to start multiple threads each one calling its thread safe InitSDK() and ProcessReady() with different port numbers?
Thank you in advance