Permalink
Browse files

The error measurement hack apparently written long ago for Microsoft …

…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 7dfdca2dbb4594ab62a6e67bc5275e5f0d1748d5
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/hardware/timer.cpp
@@ -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);
}
}

0 comments on commit 7dfdca2

Please sign in to comment.