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

Improve Metal vertex buffer bindings #7293

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Improve Metal vertex buffer bindings #7293

merged 1 commit into from
Oct 25, 2023

Conversation

bejado
Copy link
Member

@bejado bejado commented Oct 24, 2023

Before, each Attribute within a Filament VertexBuffer was bound to its own Metal buffer argument index. After this change, two buffers that share the same stride will map to the same index. This improves CPU performance by reducing redundant bindings, especially for scenes with lots of vertex attributes.

@bejado bejado added the internal Issue/PR does not affect clients label Oct 24, 2023
@bejado bejado merged commit d76cf64 into main Oct 25, 2023
12 checks passed
@bejado bejado deleted the bjd/vertex-improvements branch October 25, 2023 16:14
plepers pushed a commit to plepers/filament that referenced this pull request Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants