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

Static mesh optimizations support #61

Open
japsuu opened this issue Sep 9, 2024 · 0 comments
Open

Static mesh optimizations support #61

japsuu opened this issue Sep 9, 2024 · 0 comments
Labels
feature request Request a new feature

Comments

@japsuu
Copy link
Owner

japsuu commented Sep 9, 2024

Is your feature request related to a problem? Please describe.
Currently, there is no way to combine or optimize meshes for drawing.
Combining meshes would help with reducing draw-calls, and optimizing meshes internally (reordering verts/tris) should help with GPU cache coherency.

Describe the solution you'd like

  1. Implement a mesh combining API, that takes multiple materials and meshes as input, and returns a combined mesh.
  2. Implement mesh optimization API (similar to Unity's Mesh.Optimize, that internally reorders the vertex data to GPU favorable format.

Mesh combining would most likely also require multi-material-support, where a single mesh can be drawn using multiple different materials.

Describe alternatives you've considered
Not supporting mesh optimizations.
This is also a valid path, since there are offline tools that can be used to optimize meshes.

Additional context
Mesh optimization:

@japsuu japsuu added the feature request Request a new feature label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature
Projects
Status: Todo
Development

No branches or pull requests

1 participant