Add a dirty flag for arraybases.

Only loop through and call getPointers when something has actually
changed.
Worth about 2-4% speedup un SMG over the previous commit.
This commit is contained in:
Scott Mansell
2015-05-30 03:58:27 +12:00
parent f57517f1a0
commit 7df6982973
4 changed files with 16 additions and 0 deletions

View File

@ -255,6 +255,7 @@ struct CPState final
// Attributes that actually belong to VertexLoaderManager:
BitSet32 attr_dirty;
bool bases_dirty;
VertexLoaderBase* vertex_loaders[8];
};