You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Coalesce VAO and Buffer creation and deletion #434
Currently, we have a lot of calls to subsequent glDeleteVertexArrays or glDeleteBuffers that only specify one argument. We should collect all buffers we need to delete and release them in one go instead of making individual calls for every buffer.
Buffers, textures and VAOs deletion are coalesced in 9c26f06.
To coalesce creation, we'll have to uncouple data buffer creation and OpenGL object creation.
This is partially done - OpenGL objects are created in a separate timeline, but we still call the GL creation functions individually for buffers, textures and VAOs (with exception to our texture pool).
@kkaefer do you think it is feasible to group the creation of these in a single call? I'm afraid this might create too much coupling between the GLHolder objects and its containers.
Activity
kkaefer commentedon Mar 30, 2015
VAO deletion is now coalesced as of 61fa436
To coalesce creation, we'll have to uncouple data buffer creation and OpenGL object creation.
brunoabinader commentedon Mar 3, 2016
Buffers, textures and VAOs deletion are coalesced in 9c26f06.
This is partially done - OpenGL objects are created in a separate timeline, but we still call the GL creation functions individually for buffers, textures and VAOs (with exception to our texture pool).
@kkaefer do you think it is feasible to group the creation of these in a single call? I'm afraid this might create too much coupling between the GLHolder objects and its containers.
jfirebaugh commentedon Jun 1, 2016
I don't think we have any indications that creation is actually a bottleneck; let's close this for now.
Merge pull request mapbox#434 from mapbox/maxim/431-fix-example-app-c…