Check enqueue as well, should be safer.

Also, make sure not to eat a bunch more cycles when forcing a check.
This commit is contained in:
Unknown W. Brackets committed 2013-09-21 17:00:52 -07:00
1 parent 74f58ed357
commit d305d1faa2
2 files changed
+8 -2

No files matched your search

+3
View File
@@ -525,6 +525,8 @@ void ForceCheck()
globalTimer += cyclesExecuted;
// This will cause us to check for new events immediately.
currentMIPS->downcount = 0;
// But let's not eat a bunnch more time in Advance() because of this.
slicelength = 0;
}
void Advance()
@@ -541,6 +543,7 @@ void Advance()
{
// WARN_LOG(TIMER, "WARNING - no events in queue. Setting currentMIPS->downcount to 10000");
currentMIPS->downcount += 10000;
slicelength = 10000;
}
else
{