CDROM: Add 3 sectors read time to seek time

Simulates the drive's inprecise coarse seek then reading subq to get to
the exact sector.

Fixes Waku Waku Derby.
This commit is contained in:
Connor McLaughlin 2020-05-20 23:52:34 +10:00
parent dfe0dcb56c
commit 3c7229dfe2

View file

@ -573,8 +573,9 @@ TickCount CDROM::GetTicksForSeek(CDImage::LBA new_lba)
ticks += static_cast<u32>(static_cast<double>(MASTER_CLOCK) * 0.1);
}
// time to read the sector
ticks += GetTicksForRead();
// it's unlikely that the drive would seek to exactly the correct position, so simulate this by adding the time
// required to read a few sectors
ticks += GetTicksForRead() * 3u;
Log_DevPrintf("Seek time for %u LBAs: %d", lba_diff, ticks);
return ticks;