From fd7860c0d656028fb50a9d832d2df7e260c845ba Mon Sep 17 00:00:00 2001 From: Barry Harris <44396066+barry65536@users.noreply.github.com> Date: Thu, 5 Jan 2012 21:47:04 +0000 Subject: [PATCH] Reverted CPS-2 VBlank timing, broke rasters in lower Manhattan stage of xmvsf, and probably others --- src/burn/drivers/capcom/cps_run.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/burn/drivers/capcom/cps_run.cpp b/src/burn/drivers/capcom/cps_run.cpp index 8292ef9cd..377764ccc 100644 --- a/src/burn/drivers/capcom/cps_run.cpp +++ b/src/burn/drivers/capcom/cps_run.cpp @@ -423,13 +423,14 @@ INT32 Cps2Frame() // nCpsCyclesSegment[0] = (nCpsCycles * nVBlank) / 0x0106; // nDone += SekRun(nCpsCyclesSegment[0] - nDone); -#if 0 +#if 1 // This triggers the VBlank IRQ straight away at display end, // it causes glitches in the D&D games text (Press Start, Insert Coin, etc) SekSetIRQLine(2, SEK_IRQSTATUS_AUTO); // VBlank SekRun(nCpsCycles - SekTotalCycles()); #else // Here we delay the VBlank IRQ until frame-end, or part-way through VBlank + // fixes D&D glitching credit text but breaks lower Manhattan stage rasters in xmvsf SekRun(nCpsCycles - SekTotalCycles()); SekSetIRQLine(2, SEK_IRQSTATUS_AUTO); // VBlank #endif