Skip to content

Commit

Permalink
core z80, partially revert ebde43d (bus blocking DMA)
Browse files Browse the repository at this point in the history
it causes audio lag in OD2
  • Loading branch information
irixxxx committed May 23, 2024
1 parent b720950 commit 3b480be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pico/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b480be

Please sign in to comment.