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

Batching plans #128

Closed
2 of 5 tasks
ncannasse opened this issue Jun 11, 2021 · 1 comment
Closed
2 of 5 tasks

Batching plans #128

ncannasse opened this issue Jun 11, 2021 · 1 comment

Comments

@ncannasse
Copy link
Member

ncannasse commented Jun 11, 2021

In order to improve batching of similar meshes, a step by step approach seems interesting:

  • Create a Batcher prefab that auto batches its children (recursively) checking for eventual shader/material to ensure they can still apply - and skipping single instance meshes ?
  • Have Meshspray inherit this prefab
  • Create MeshLibrary that from a children list of meshes will generate a single hmd and texture data with different materials (one per mesh)
  • Allows to set a MeshLibrary generated hmd to Batcher in order to use single draw call instancing for all sub meshes. Deal with material props.
  • Allows to turn Batcher in Dynamic mode, which would capture children emit() calls recursively then either let them pass (shader applied) or emit instances dynamically (with cache).
@ncannasse
Copy link
Member Author

Partial implementation has been made, further dev will be handled in #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant