DMA: Speed up RAM write with CDROM speedup

Might make it ever-so-slightly more reliable. The number of cycles is
pretty small though, ~500 or so.
This commit is contained in:
Stenzek
2025-10-20 17:53:58 +10:00
parent 751781325c
commit cab6669eb7

View File

@@ -953,7 +953,13 @@ TickCount DMA::TransferDeviceToMemory(u32 address, u32 increment, u32 word_count
}
}
return Bus::GetDMARAMTickCount(word_count);
TickCount ticks = Bus::GetDMARAMTickCount(word_count);
if constexpr (channel == Channel::CDROM)
{
if (g_settings.cdrom_read_speedup != 1)
ticks = (g_settings.cdrom_read_speedup == 0) ? 0 : (ticks / g_settings.cdrom_read_speedup);
}
return ticks;
}
void DMA::DrawDebugStateWindow(float scale)