Is there any way to change the max rooms a local RS can have? It is currently 10, but I’d like to be able to make it a much larger number.
This is specifically for testing. We have tests that run back-to-back in rapid succession and each test creates its own room. This is the easiest / cleanest setup. After 10 tests, the RS is full and all tests will error after that unless RS is restarted.
Hey, so there’s no max rooms specifically except the ID limit of 64K active at once. Rooms take 60 secs by default to close so you can tune how quickly the system checks for empty rooms to close, and probably drop this to 1. This is in the editor’s coherence setting in the project settings.
Also, take a look at this doc for the comprehensive CLI options: Rooms Mode | coherence Documentation, since not everything is exposed in the editor because the more advanced options are CLI only.
What error are you seeing when it fails to create a room? Is it running out of memory to allocate more rooms?
Thank you, this is what I was looking for. I looked at the settings, but I missed the cleanup time somehow.
The error is just because there are 10 rooms active, so it just won’t allow another room to be created because its maxed out. There is a 10 room max for local RS, it is not an entity count issue.
Ah yes, we removed that restriction in 2.0. No more unlock token required when we launched proper support for self hosting. So, if you’re using 2.0 I would make sure you’re not using an old version of the RS for your testing.