diff --git a/source/duke3d/src/game.h b/source/duke3d/src/game.h index 9735115e4..b8128bd60 100644 --- a/source/duke3d/src/game.h +++ b/source/duke3d/src/game.h @@ -326,7 +326,7 @@ static inline int32_t gameHandleEvents(void) static inline int32_t calc_smoothratio_demo(ClockTicks totalclk, ClockTicks ototalclk) { - int32_t rfreq = (refreshfreq != -1 ? refreshfreq : 60); + int32_t rfreq = tabledivide64((refreshfreq != -1 ? refreshfreq : 60) * TICRATE, timerGetClockRate()); uint64_t elapsedFrames = tabledivide64(((uint64_t) (totalclk - ototalclk).toScale16()) * rfreq, 65536*TICRATE); #if 0 //POGO: additional debug info for testing purposes