From: Toni Wilen Date: Fri, 13 Mar 2026 20:17:57 +0000 (+0200) Subject: Check vsync check 1 line later X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=e8a5d0c9b9eb4944bc114b2d5799da9e95e664dc;p=francis%2Fwinuae.git Check vsync check 1 line later --- 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;