Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderer: batch object spawning #275

Open
marceline-cramer opened this issue Dec 31, 2023 · 1 comment
Open

renderer: batch object spawning #275

marceline-cramer opened this issue Dec 31, 2023 · 1 comment
Labels
easy Easy difficulty to accomplish enhancement New feature or request guest Deals with guest side code host Deals with host side code

Comments

@marceline-cramer
Copy link
Collaborator

marceline-cramer commented Dec 31, 2023

Objects lazily load their assets when they're spawned, so when you spawn in several objects in sequence, each object is only instantiated once all the objects before it have been loaded. For lots of objects, you can clearly see the loading happening.

The renderer service should support a request that processes a list of object spawns, not just a single one. On that request, the renderer can load each of the objects' assets without spawning them. If any of the asset loading fails, none of the objects are spawned and the service responds with an error. Otherwise, all of the objects are spawned into the world at once, and the list of capabilities to each of them are returned with a success response, with each entry in the list corresponding to the spawn request list entry.

@marceline-cramer marceline-cramer added enhancement New feature or request guest Deals with guest side code host Deals with host side code labels Dec 31, 2023
@marceline-cramer
Copy link
Collaborator Author

@ten3roberts, if you're willing to, I think this issue would be great for you.

@marceline-cramer marceline-cramer added the easy Easy difficulty to accomplish label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy difficulty to accomplish enhancement New feature or request guest Deals with guest side code host Deals with host side code
Projects
None yet
Development

No branches or pull requests

1 participant