GE Debugger: Fix dump replay ticks accounting.

Sometimes a list ends earlier than now, we don't need to eat cycles then.
Fixes #11655.
This commit is contained in:
Unknown W. Brackets 2018-12-10 23:05:42 -08:00
parent 02d2aa4069
commit bb7d9646f2

View File

@ -872,7 +872,10 @@ void DumpExecute::SyncStall() {
gpu->UpdateStall(execListID, execListPos);
s64 listTicks = gpu->GetListTicks(execListID);
if (listTicks != -1) {
currentMIPS->downcount -= listTicks - CoreTiming::GetTicks();
s64 nowTicks = CoreTiming::GetTicks();
if (listTicks > nowTicks) {
currentMIPS->downcount -= listTicks - nowTicks;
}
}
// Make sure downcount doesn't overflow.