matrix-org / thirdroom

Open, decentralised, immersive worlds built on Matrix
https://thirdroom.io
Apache License 2.0
595 stars 66 forks source link

Make it easier to scale up/down the number of instances of a world #395

Open robertlong opened 1 year ago

robertlong commented 1 year ago

Currently we handle scaling the number of players we can support by creating multiple rooms and adding additional portals to our scenes. This means that we need to modify the scene in unity, rebake the lighting, put the exported glTF through the asset optimization pipeline, and upload the scene again. This can take 2+ hours of work to change. It'd be much better if we could just set the number of instances we want of a room in the world settings and use multiple group calls. We also won't need to worry about this quite as much when we have a SFU that will bump our room cap significantly.

ARtSSt commented 1 year ago

Maybe possible sim linking with S3 could help, this way assets are formatted through a cron job or ci/CD and then assets are available simply by restarting the the game. And this scales across users.

There is also the assimp library for streaming protocols.

ARtSSt commented 1 year ago

I may also have misunderstood they original problem if scaling for users is the issue AGONES maybe an option as well