From 5b2b253dcf27d24e6b183a06d2c4625d5fae0181 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 16 Apr 2026 18:52:16 +0300 Subject: [PATCH] Do not emulate hp=1 special case in fast CPU modes. --- custom.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/custom.cpp b/custom.cpp index f4814b79..f4f200e0 100644 --- a/custom.cpp +++ b/custom.cpp @@ -2385,15 +2385,17 @@ static void incpos(uae_u16 *hpp, uae_u16 *vpp) if (syncs_stopped) { return; } - if (hp == 1) { - vp++; - if (vp == maxvpos + lof_store) { - vp = 0; + if (currprefs.cpu_memory_cycle_exact) { + if (hp == 1) { + vp++; + if (vp == maxvpos + lof_store) { + vp = 0; + } + } + hp++; + if (hp == maxhpos || hp == maxhpos_long) { + hp = 0; } - } - hp++; - if (hp == maxhpos || hp == maxhpos_long) { - hp = 0; } if (canvhposw()) { if (agnus_pos_change >= 1) { -- 2.47.3