game.h: fix calc_smoothratio_demo() to take into account differences between timerGetClockRate() and TICRATE when calculating the refresh frequency to interpolate between

git-svn-id: https://svn.eduke32.com/eduke32@8534 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2020-01-21 06:01:33 +00:00 committed by Christoph Oelckers
parent 9c423ae6a3
commit dbc8e63b8b
1 changed files with 1 additions and 1 deletions

View File

@ -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