Commander_Wars icon indicating copy to clipboard operation
Commander_Wars copied to clipboard

Slave spawns liberating memory when users aren't connected

Open lonewolf19991 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Currently slaves that are spawned in multiplayer, do not get killed by the main process when all users disconnect, instead they remain loaded in ram. This means that more memory is needed to have more open matches.

Describe the solution you'd like Ideally the data from a match where no users are connected should be stored in a database, or in a save file, and then a new slave be spawned when the users in that match rejoin, this would liberate the memory and allow many more matches to be active.

Describe alternatives you've considered Am even better option would be if the server code only sent the data between the clients, reducing even further the workload and allowing a greater number of concurrent matches. This would of course need a lot of refactoring.

lonewolf19991 avatar Oct 04 '22 05:10 lonewolf19991