mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user