mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
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:
parent
9c423ae6a3
commit
dbc8e63b8b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue