fix clock overflow
This commit is contained in:
parent
6118e75ec7
commit
40da2ecb46
2 changed files with 38 additions and 2 deletions
|
|
@ -1608,7 +1608,7 @@ bool DivEngine::nextTick(bool noAccum, bool inhibitLowLat) {
|
|||
}
|
||||
if (totalTicks>=1000000) {
|
||||
totalTicks-=1000000;
|
||||
totalSeconds++;
|
||||
if (totalSeconds<0x7fffffff) totalSeconds++;
|
||||
cmdsPerSecond=totalCmds-lastCmds;
|
||||
lastCmds=totalCmds;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue