MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / VSyncEnd

Function VSyncEnd

pcsx2/Counters.cpp:564–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564static __fi void VSyncEnd(u64 sCycle)
565{
566 EECNT_LOG(" ================ EE COUNTER VSYNC END (frame: %d) ================", g_FrameCount);
567
568 g_FrameCount++;
569 if (!GSSMODE1reg.SINT)
570 {
571 hwIntcIrq(INTC_VBLANK_E); // HW Irq
572 psxVBlankEnd(); // psxCounters vBlank End
573 rcntEndGate(true, sCycle); // Counters End Gate Code
574 }
575
576 // This doesn't seem to be needed here. Games only seem to break with regard to the
577 // vsyncstart irq.
578 //cpuRegs.eCycle[30] = 2;
579}
580
581//#define VSYNC_DEBUG // Uncomment this to enable some vSync Timer debugging features.
582#ifdef VSYNC_DEBUG

Callers 1

rcntUpdate_vSyncFunction · 0.85

Calls 3

hwIntcIrqFunction · 0.85
psxVBlankEndFunction · 0.85
rcntEndGateFunction · 0.85

Tested by

no test coverage detected