From e8a5d0c9b9eb4944bc114b2d5799da9e95e664dc Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 13 Mar 2026 22:17:57 +0200 Subject: [PATCH] Check vsync check 1 line later --- custom.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/custom.cpp b/custom.cpp index 1df9651a..8eb6ec99 100644 --- a/custom.cpp +++ b/custom.cpp @@ -6671,6 +6671,8 @@ static void hsync_handler(bool vs) } } reset_autoscale(); + virtual_vsync_check(); + last_vsync_evt = get_cycles() + (maxvpos * maxhpos * 3) * CYCLE_UNIT; display_vsync_counter++; maxvpos_display_vsync_next = true; display_hsync_counter = 0; @@ -11258,13 +11260,6 @@ static void custom_trigger_start(void) check_vsyncs_fast(); } - if (vpos == vsync_startline) { - - virtual_vsync_check(); - - last_vsync_evt = get_cycles() + (maxvpos * maxhpos * 3) * CYCLE_UNIT; - } - #if 0 if (1 && !can_fast_custom() && custom_fastmode) { custom_fastmode = 0; -- 2.47.3