| 562 | } |
| 563 | |
| 564 | static __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 |
no test coverage detected