Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Coalesce VAO and Buffer creation and deletion #434

Closed

Description

@kkaefer

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.

Activity

  1. added this to the milestone on Feb 17, 2015
  2. removed this from the milestone on Mar 3, 2015
  3. kkaefer commented on Mar 30, 2015

    @kkaefer
    MemberAuthor

    VAO deletion is now coalesced as of 61fa436

    To coalesce creation, we'll have to uncouple data buffer creation and OpenGL object creation.

  4. brunoabinader commented on Mar 3, 2016

    @brunoabinader
    Contributor

    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.

  5. jfirebaugh commented on Jun 1, 2016

    @jfirebaugh
    Contributor

    I don't think we have any indications that creation is actually a bottleneck; let's close this for now.

  6. added a commit that references this issue on Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions