rename totalTicksOff to totalTimeDrift
This commit is contained in:
parent
5ff81aef33
commit
3516245d2e
3 changed files with 7 additions and 7 deletions
|
|
@ -2583,9 +2583,9 @@ bool DivEngine::nextTick(bool noAccum, bool inhibitLowLat) {
|
|||
double dt=divider*tickMult;
|
||||
totalTicksR++;
|
||||
totalTime.micros+=1000000/dt;
|
||||
totalTicksOff+=fmod(1000000.0,dt);
|
||||
while (totalTicksOff>=dt) {
|
||||
totalTicksOff-=dt;
|
||||
totalTimeDrift+=fmod(1000000.0,dt);
|
||||
while (totalTimeDrift>=dt) {
|
||||
totalTimeDrift-=dt;
|
||||
totalTime.micros++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue