From 201c7a9dc25490afd828979ca3f548f819d577ea Mon Sep 17 00:00:00 2001 From: goyuken Date: Wed, 17 Oct 2012 00:25:02 +0000 Subject: [PATCH] VRC7: create the fm chip in Configure(), instead of before constructor. this shaves .001ns off board scanning times --- BizHawk.Emulation/Consoles/Nintendo/NES/Boards/VRC7.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/VRC7.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/VRC7.cs index 9fd7d01294..de8cdbfce9 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/VRC7.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/VRC7.cs @@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo Func 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)