Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

VAO Primitive Vertex Data Ownership #77

Closed
AlexvZyl opened this issue Nov 16, 2021 · 0 comments · Fixed by #195
Closed

VAO Primitive Vertex Data Ownership #77

AlexvZyl opened this issue Nov 16, 2021 · 0 comments · Fixed by #195
Assignees
Labels
OpenGL Software related to the gaphics rendering backend. Optimization Optimizing and improving existing features and code,

Comments

@AlexvZyl
Copy link
Owner

Currently each entity has its own vertex data. When loading the data to the GPU the buffer size is allocated glBufferData() and then looped over all of the entities and over each entities vertex vector glBufferSubData().

If all of that vertex data of all of the entities can be stored in one vector (and the entities only contain information regarding where in the vector the vertices are) the data can be loaded with only one call glBufferData().

@AlexvZyl AlexvZyl added OpenGL Software related to the gaphics rendering backend. Optimization Optimizing and improving existing features and code, labels Nov 16, 2021
@AlexvZyl AlexvZyl changed the title Entity Vertex Data Entity Vertex Data Ownership Dec 3, 2021
@AlexvZyl AlexvZyl changed the title Entity Vertex Data Ownership VAO Primitive Vertex Data Ownership Dec 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OpenGL Software related to the gaphics rendering backend. Optimization Optimizing and improving existing features and code,
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants