Skip to content

Commit

Permalink
The error measurement hack apparently written long ago for Microsoft …
Browse files Browse the repository at this point in the history
…Flight Simulator is causing some demos to run with slower timers. SVN has apparently removed it, so we should as well. This fixes demoscene production Deaparca when GUS is involved
  • Loading branch information
joncampbell123 committed Aug 13, 2018
1 parent 9004af0 commit 7dfdca2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hardware/timer.cpp
Expand Up @@ -78,10 +78,7 @@ static void PIT0_Event(Bitu /*val*/) {
pit[0].delay=(1000.0f/((float)PIT_TICK_RATE/(float)pit[0].cntr));
pit[0].update_count=false;
}
// regression to r3533 fixes flight simulator 5.0
double error = pit[0].start - PIC_FullIndex();
PIC_AddEvent(PIT0_Event,(float)(pit[0].delay + error));
// PIC_AddEvent(PIT0_Event,pit[0].delay); // r3534
PIC_AddEvent(PIT0_Event,pit[0].delay);
}
}

Expand Down

0 comments on commit 7dfdca2

Please sign in to comment.