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

Function GSVSync

pcsx2/Counters.cpp:545–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545static __fi void GSVSync()
546{
547 // CSR is swapped and GS vBlank IRQ is triggered roughly 3.5 hblanks after VSync Start
548 if (GSSMODE1reg.SINT)
549 return;
550
551 if (IsProgressiveVideoMode())
552 CSRreg.SetField();
553 else
554 CSRreg.SwapField();
555
556 if (!CSRreg.VSINT)
557 {
558 CSRreg.VSINT = true;
559 if (!GSIMR.VSMSK)
560 gsIrq();
561 }
562}
563
564static __fi void VSyncEnd(u64 sCycle)
565{

Callers 1

rcntUpdate_vSyncFunction · 0.85

Calls 2

IsProgressiveVideoModeFunction · 0.85
gsIrqFunction · 0.85

Tested by

no test coverage detected