VRC7: create the fm chip in Configure(), instead of before constructor. this shaves .001ns off board scanning times

This commit is contained in:
goyuken 2012-10-17 00:25:02 +00:00
parent 8f0a884924
commit 201c7a9dc2
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
Func<int, int> remap;
//state
BizHawk.Emulation.Sound.YM2413 fm = new Sound.YM2413(Sound.YM2413.ChipType.VRC7);
BizHawk.Emulation.Sound.YM2413 fm; //= new Sound.YM2413(Sound.YM2413.ChipType.VRC7);
ByteBuffer prg_banks_8k = new ByteBuffer(4);
ByteBuffer chr_banks_1k = new ByteBuffer(8);
@ -79,6 +79,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo
prg_banks_8k[3] = (byte)(0xFF & prg_bank_mask_8k);
fm = new Sound.YM2413(Sound.YM2413.ChipType.VRC7);
return true;
}
public override byte ReadPRG(int addr)