This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Optimize vertex buffers #63
Labels
performance
Speed, stability, CPU usage, memory usage, or power usage
We could optimize vertex buffers by making sure we don't duplicate any vertices because we're using indexed draws (with
drawElements
) everywhere anyway. This reduces the memory, bandwidth and allows the hardware to the transformed vertex cache so it only has to transform a vertex once.To better use that cache, we should sort the vertex and index buffers so that we avoid large jumps: ideally, indices are as linear as possible. To achieve this, we can reorder the vertex cache.
The text was updated successfully, but these errors were encountered: