Ram Search - small speedup on UpdateValues

This commit is contained in:
adelikat 2012-09-02 01:52:16 +00:00
parent 8c5d8741cb
commit 1f128aeda4
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ namespace BizHawk.Emulation.Consoles.Sega
(addr, value) => VDP.VRAM[addr & 0xFFFF] = value);
var RomDomain = new MemoryDomain("Rom Data", RomData.Length, Endian.Big,
addr => RomData[addr & (RomData.Length - 1)],
addr => RomData[addr], //adelikat: For speed considerations, I didn't mask this, every tool that uses memory domains is smart enough not to overflow, if I'm wrong let me know!
(addr, value) => RomData[addr & (RomData.Length - 1)] = value);
var SystemBusDomain = new MemoryDomain("System Bus", 0x1000000, Endian.Big,

View File

@ -79,7 +79,7 @@ namespace BizHawk.MultiClient
sortReverse = false;
sortedCol = "";
for (int x = 0; x < searchList.Count; x++)
for (int x = searchList.Count - 1; x >= 0; x--)
{
searchList[x].PeekAddress(Domain);
}