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

Use VAO to save on vertex specifying commands when drawing #317

Merged
merged 1 commit into from
Jun 25, 2014

Commits on Jun 24, 2014

  1. Use VAO to save on vertex specifying commands when drawing

    The new behavior becomes active if WebGL on the client system supports
    OES_vertex_array_object. The VAO reference is stored on the geometry
    chunk. If the interleaved buffer is dirtied and the VAO references it, it
    is reconstructed based on the regular buffers. The VAO is also reset if
    the chunk is rebuilt. VAOs are not used if morph geometry is present.
    
    OES_vertex_array_object is a widely supported WebGL extension, around
    75% of clients have it according to webglstats. In large scenes on
    CPU-constrained systems that support the extension this patch can
    increase FPS as much as 15%.
    Olli Etuaho committed Jun 24, 2014
    Configuration menu
    Copy the full SHA
    22f9555 View commit details
    Browse the repository at this point in the history