forked from NVIDIA/scenejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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%.
- Loading branch information
Olli Etuaho
committed
Jun 24, 2014
1 parent
59279e9
commit 22f9555
Showing
3 changed files
with
85 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters