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
fix(webgl): Pair calls to bind/unbind VAO #2032
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @donmccurdy and the rest of your teammates on Graphite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the index buffer is not stored in the underlying VertexArray, then one could question whether it should be managed by the VertexArray class.
On closer look at the spec, I think I see the issue – will try to bump this to avoid rebinding on each frame. |
…s, minimize index buffer binds
Done! I think the trick here will be to pair every call to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok Let's land it and keep an eye on it. It will be great if this binding/unbinding can be remove.
Fixes:
It's not obvious to me that we should be able to bind the index buffer only once... if not, we need to bind on every frame.
Related:
9.0.0-beta.10
deck.gl#8582