From 37c9e69b3e29278d722fcb92107048a6d957f515 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 1 Dec 2020 01:16:47 +1000 Subject: [PATCH] System: Zero downcount at end of frame Prevents code running after vblank starts, and fixes events getting delayed in interpreter mode. --- src/core/system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/system.cpp b/src/core/system.cpp index e5ad71b84..f5ea83eeb 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -176,6 +176,7 @@ void FrameDone() { s_frame_number++; CPU::g_state.frame_done = true; + CPU::g_state.downcount = 0; } void IncrementInternalFrameNumber()