VRC7: create the fm chip in Configure(), instead of before constructor. this shaves .001ns off board scanning times
This commit is contained in:
parent
8f0a884924
commit
201c7a9dc2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue