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

AZDO: Vertex array objects per vertex format #46

Open
xycaleth opened this issue May 1, 2016 · 0 comments
Open

AZDO: Vertex array objects per vertex format #46

xycaleth opened this issue May 1, 2016 · 0 comments

Comments

@xycaleth
Copy link
Owner

xycaleth commented May 1, 2016

To reduce driver overhead, we can reduce the number of calls to glVertexAttribPointer and co. Ahead of time, any model will know what format their vertex data is stored in. We can create a vertex array object per vertex format, each with a large vertex buffer. When allocating GPU mem for vertex data, we sub allocate out of these vertex buffers. At render time, draw calls can be sorted by vertex format and the base vertex can be used to specify which section of the vertex buffer to use:

bind vertex array object
for each object with this format:
  draw object with base vertex
@xycaleth xycaleth mentioned this issue May 1, 2016
4 tasks
@xycaleth xycaleth modified the milestone: Milestone 4 May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant