mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Move ctrl to after vblank, not before.
Tests I'd done long ago suggested this wasn't right, but we made other timing fixes since then, and now tests are showing this is the right order. May improve Patapon/etc. timing, or may hurt it...
This commit is contained in:
parent
dda6a39b6f
commit
39cd7f812a
1 changed files with 3 additions and 3 deletions
|
@ -501,9 +501,6 @@ void hleEnterVblank(u64 userdata, int cyclesLate) {
|
|||
}
|
||||
frameStartTicks = CoreTiming::GetTicks();
|
||||
|
||||
// Fire the vblank listeners before we wake threads.
|
||||
__DisplayFireVblank();
|
||||
|
||||
// Wake up threads waiting for VBlank
|
||||
u32 error;
|
||||
for (size_t i = 0; i < vblankWaitingThreads.size(); i++) {
|
||||
|
@ -588,6 +585,9 @@ void hleLeaveVblank(u64 userdata, int cyclesLate) {
|
|||
isVblank = 0;
|
||||
DEBUG_LOG(SCEDISPLAY,"Leave VBlank %i", (int)userdata - 1);
|
||||
CoreTiming::ScheduleEvent(msToCycles(frameMs - vblankMs) - cyclesLate, enterVblankEvent, userdata);
|
||||
|
||||
// Fire the vblank listeners after the vblank completes.
|
||||
__DisplayFireVblank();
|
||||
}
|
||||
|
||||
u32 sceDisplayIsVblank() {
|
||||
|
|
Loading…
Add table
Reference in a new issue