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.
wip2
Stenzek 6 days ago
parent 751781325c
commit cab6669eb7
No known key found for this signature in database

@ -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) void DMA::DrawDebugStateWindow(float scale)

Loading…
Cancel
Save