Reverted CPS-2 VBlank timing, broke rasters in lower Manhattan stage of xmvsf, and probably others

This commit is contained in:
Barry Harris 2012-01-05 21:47:04 +00:00
parent 72d50507e7
commit fd7860c0d6

View File

@ -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