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

@ -22,7 +22,10 @@ void DoCPState(PointerWrap& p)
p.DoArray(g_main_cp_state.vtx_attr, 8);
p.DoMarker("CP Memory");
if (p.mode == PointerWrap::MODE_READ)
{
CopyPreprocessCPStateFromMain();
g_main_cp_state.bases_dirty = true;
}
}
void CopyPreprocessCPStateFromMain()