mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Fix timing drift on CoreTiming::ForceCheck().
Since -1 -(-1) = 0, we'll never think we moved forward this way.
This commit is contained in:
parent
d6c2b6e9ae
commit
6bf1390603
@ -572,7 +572,7 @@ void ForceCheck()
|
||||
// This will cause us to check for new events immediately.
|
||||
currentMIPS->downcount = -1;
|
||||
// But let's not eat a bunch more time in Advance() because of this.
|
||||
slicelength = 1;
|
||||
slicelength = -1;
|
||||
}
|
||||
|
||||
void Advance()
|
||||
|
@ -149,7 +149,7 @@ bool IRJit::ReplaceJalTo(u32 dest) {
|
||||
}
|
||||
|
||||
void IRBlockCache::Clear() {
|
||||
for (size_t i = 0; i < blocks_.size(); ++i) {
|
||||
for (int i = 0; i < size_; ++i) {
|
||||
blocks_[i].Destroy(i);
|
||||
}
|
||||
blocks_.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user