From 4c919c95c0ac5833cbcd0d4f6a19017ff8ddca77 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Wed, 5 Oct 2016 22:26:47 -0400 Subject: [PATCH] Match first VBlank timing to FCEUX Irrelevent to sync since games wait for VBlank anyway, but extremely convenient for testing. --- BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs index 5ccf068bc2..5ba98ab505 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.run.cs @@ -641,13 +641,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES if (ppudead < 2) { ppur.status.sl = 241; - runppu(postNMIlines * kLineTime); + runppu(3); + //Reg2002_vblank_active = true; + runppu(3); + runppu(postNMIlines * kLineTime - 6); ppur.status.sl = 0; - clear_2002(); + //clear_2002(); } runppu(241 * kLineTime); runppu(preNMIlines * kLineTime); - Reg2002_vblank_active = true; --ppudead; } }