mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
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:
parent
f57517f1a0
commit
7df6982973
4 changed files with 16 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue