mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Merge pull request #3632 from mmastrac/dvd_signedness
[DVD] Signedness fix in realistic timing path
This commit is contained in:
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
[Core]
|
[Core]
|
||||||
# Values set here will override the main Dolphin settings.
|
# Values set here will override the main Dolphin settings.
|
||||||
FastDiscSpeed = True
|
|
||||||
|
|
||||||
[EmuState]
|
[EmuState]
|
||||||
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
|
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
|
||||||
|
@ -1301,7 +1301,7 @@ u64 SimulateDiscReadTime(u64 offset, u32 length)
|
|||||||
u64 disk_read_duration = CalculateRawDiscReadTime(offset, length) +
|
u64 disk_read_duration = CalculateRawDiscReadTime(offset, length) +
|
||||||
SystemTimers::GetTicksPerSecond() / 1000 * DISC_ACCESS_TIME_MS;
|
SystemTimers::GetTicksPerSecond() / 1000 * DISC_ACCESS_TIME_MS;
|
||||||
|
|
||||||
if (offset + length - s_last_read_offset > 1024 * 1024)
|
if (offset + length > s_last_read_offset + 1024 * 1024)
|
||||||
{
|
{
|
||||||
// No buffer; just use the simple seek time + read time.
|
// No buffer; just use the simple seek time + read time.
|
||||||
DEBUG_LOG(DVDINTERFACE, "Seeking %" PRId64 " bytes",
|
DEBUG_LOG(DVDINTERFACE, "Seeking %" PRId64 " bytes",
|
||||||
|
Reference in New Issue
Block a user