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

Terrain: reduce number of draw calls #17

Closed
piellardj opened this issue Apr 1, 2024 · 0 comments · Fixed by #29
Closed

Terrain: reduce number of draw calls #17

piellardj opened this issue Apr 1, 2024 · 0 comments · Fixed by #29
Assignees

Comments

@piellardj
Copy link
Contributor

This is an optimization that could potentially greatly reduce the number of draw calls made to draw the terrain.

Currently, for technical reasons each patch makes 6 draw calls: on for each voxel face (first draw is all faces facing up, second is all faces facing down, etc.).
Some of these calls are useless since for neighbour/distant patches, we know for sure 3 of those draw calls are useless.

Other solution would be to draw the patch with a single draw call, but it poses other issues.

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

Successfully merging a pull request may close this issue.

1 participant