From: Toni Wilen Date: Thu, 16 Apr 2026 15:52:16 +0000 (+0300) Subject: Do not emulate hp=1 special case in fast CPU modes. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5b2b253dcf27d24e6b183a06d2c4625d5fae0181;p=francis%2Fwinuae.git Do not emulate hp=1 special case in fast CPU modes. --- 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) {