-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Change default vertex layout to seperate buffers #592
Copy link
Copy link
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possible
Description
Right now the vertex layout is interleave, meaning data is stored like (VVVNNNCCC). It would make sense to use seperate buffers, like in (VVV) (NNN) (CCC).
Pro:
- Easier adding of new attributes / more modular approach
- More controlled binding, like only bind position buffer for shadow rendering
- Faster modification of certain buffers, like changing the vertex color on the CPU without uploading the entire mesh again
Cons:
- More binding code -> slightly worse CPU performance?
- Unkown performance implications? https://www.khronos.org/opengl/wiki/Vertex_Specification_Best_Practices puts it as GPU Vendor dependen, but could do some profiling how bad it really is.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possible