From 3b480be4c0ef9dd82df9d9634987ee02e8eed028 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 24 May 2024 00:06:39 +0200 Subject: [PATCH] core z80, partially revert ebde43d (bus blocking DMA) it causes audio lag in OD2 --- pico/memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pico/memory.c b/pico/memory.c index fa3cf0f9..de5e3e5e 100644 --- a/pico/memory.c +++ b/pico/memory.c @@ -1372,7 +1372,8 @@ static void access_68k_bus(int delay) // bus delay as Q8 // TODO: if the 68K is in DMA wait, Z80 has to wait until DMA ends if (Pico.video.status & (PVS_CPUWR|PVS_CPURD)) { z80_subCLeft(z80_cyclesLeft); // rather rough on both condition and action - Pico.video.status |= PVS_Z80WAIT; + // TODO the next line will cause audio lag in Overdrive 2 demo? + //Pico.video.status |= PVS_Z80WAIT; } // 68k bus access delay for z80. The fractional part needs to be accumulated -- 2.39.5