mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
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:
parent
dfe0dcb56c
commit
3c7229dfe2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue