Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Optimize vertex buffers #63

Closed
kkaefer opened this issue Feb 13, 2014 · 2 comments
Closed

Optimize vertex buffers #63

kkaefer opened this issue Feb 13, 2014 · 2 comments
Labels
performance Speed, stability, CPU usage, memory usage, or power usage

Comments

@kkaefer
Copy link
Member

kkaefer commented Feb 13, 2014

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.

@kkaefer
Copy link
Member Author

kkaefer commented Feb 13, 2014

(Note that this may not yield a lot of speed wins because of the way we generate our index buffers; they're mostly ascending already)

@kkaefer
Copy link
Member Author

kkaefer commented Oct 29, 2014

We are doing this now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

No branches or pull requests

2 participants