PC Engine CDROM timing corrections (#412)

1) Fix for Issue 120 broke timing for cut-scene videos.  Restoring delay for SAPSP-type seeks  (issue #145)

2) fixes for issues #120 & #145:
a) PAUSE placed head just outside of minimum-seektime area -> when playback was restored, it was late, contributing to hangs (i.e. Bomberman Panic Bomber).  Increase minimum seektime region, so as to include this case.
b) Moved logging printf to AFTER SendStatus on SAPEP transactions; may help reduce hangs (i.e. Bomberman Panic Bomber).

3) Minor adjustment to improve timing on Sherlock Holmes games' video playback.
This commit is contained in:
David Shadoff
2021-06-20 02:57:46 -04:00
committed by GitHub
parent 730535d0fa
commit 77e9cb4eaa
3 changed files with 11 additions and 5 deletions

View File

@@ -91,11 +91,11 @@ float get_cd_seek_ms(int start_sector, int target_sector)
}
// Now, we use the algorithm to determine how long to wait
if (abs(target_sector - start_sector) < 2)
if (abs(target_sector - start_sector) <= 3)
{
milliseconds = (2 * 1000 / 60);
}
else if (abs(target_sector - start_sector) < 5)
else if (abs(target_sector - start_sector) < 7)
{
milliseconds = (9 * 1000 / 60) + (float)(sector_list[target_index].rotation_ms * 0.75);
}