This is a hideously ugly hack that removes some of the

speed throddling.  However, it keep up with real time now.
This commit is contained in:
Gregory Alexander 2003-02-18 04:07:42 +00:00
parent 6946666f71
commit 4ea5f058f5

View File

@ -385,7 +385,9 @@ bx_virt_timer_c::timer_handler(void) {
}
if(ticks_delta + total_ticks - last_realtime_ticks > (F2I(MAX_MULT * I2F(last_realtime_delta)))) {
//This keeps us from going too fast in relation to real time.
#if 0
ticks_delta = (F2I(MAX_MULT * I2F(last_realtime_delta))) + last_realtime_ticks - total_ticks;
#endif
ticks_per_second = F2I(MAX_MULT * I2F(USEC_PER_SECOND));
}
if(ticks_delta > system_time_delta * USEC_PER_SECOND / MIN_USEC_PER_SECOND) {