From f9f0b5f3f8fc952f604b34d2a5b02b4d718c2e9a Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 13 Feb 2026 20:34:26 +0200 Subject: [PATCH] Fast drawing mode VB fix --- custom.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom.cpp b/custom.cpp index 35811804..9fcbc262 100644 --- a/custom.cpp +++ b/custom.cpp @@ -12361,7 +12361,10 @@ static void do_cck(bool docycles) check_bpl_vdiw(); } - check_hsyncs(); + // if returning from fast mode: don't change VB state too early + if (custom_fastmode == 0) { + check_hsyncs(); + } if (agnus_hpos == HARDWIRED_DMA_TRIGGER_HPOS) { if (custom_fastmode < 0) { @@ -12463,9 +12466,8 @@ static void sync_equalline_handler(void) custom_trigger_start(); - check_vsyncs_fast(); - if (eventtab[ev_sync].active) { + check_vsyncs_fast(); check_bpl_vdiw(); do_imm_dmal(); } else { -- 2.47.3