Room memory management
Posted: 05 Jan 2022, 20:41
Hello,
I may reach 1000 fixed mmo rooms, all created with server boot. Each room has 1-3 Room variables in it.
I don't know if I should create them on startup. Does SmartFox do anything with rooms that don't have active users in them? There are many times where a good number of the rooms don't have any users, so I wonder if SmartFox optimizes memory use for those rooms when not in use.
Would it be better to create & destroy the rooms only when needed for users? For example, a user wants to join a certain room, the server creates it from settings and then joins them. I have a feeling that this approach may cause a lot of memory cleanup however because of constant create & destroy, so I am unsure if this would ever be a good approach.
Please advise if you have any general advice for this situation. I don't want to run into memory issues, but I don't know how much memory a average mmo room takes up in background.
I may reach 1000 fixed mmo rooms, all created with server boot. Each room has 1-3 Room variables in it.
I don't know if I should create them on startup. Does SmartFox do anything with rooms that don't have active users in them? There are many times where a good number of the rooms don't have any users, so I wonder if SmartFox optimizes memory use for those rooms when not in use.
Would it be better to create & destroy the rooms only when needed for users? For example, a user wants to join a certain room, the server creates it from settings and then joins them. I have a feeling that this approach may cause a lot of memory cleanup however because of constant create & destroy, so I am unsure if this would ever be a good approach.
Please advise if you have any general advice for this situation. I don't want to run into memory issues, but I don't know how much memory a average mmo room takes up in background.