mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
02d2aa4069
commit
bb7d9646f2
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue