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

Redundant buffer bindings on metal when only changing vertex buffer offset #979

Closed
staminajim opened this issue Jan 25, 2024 · 0 comments · Fixed by #980
Closed

Redundant buffer bindings on metal when only changing vertex buffer offset #979

staminajim opened this issue Jan 25, 2024 · 0 comments · Fixed by #980

Comments

@staminajim
Copy link
Contributor

In metal, if you send commands which only change the vertex buffer offset, (ie. not binding a different buffer) you get lots of warnings about unnecessary bindings in Xcode. This is pretty common when using shared resource pools.

According to the Apple documentation you should use setVertexBufferOffset instead of setVertexBuffer on the render encoder: https://developer.apple.com/library/archive/documentation/3DDrawing/Conceptual/MTLBestPracticesGuide/BufferBindings.html

Incoming PR which I'm using in my engine which resolves this

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

Successfully merging a pull request may close this issue.

2 participants