Remove FRAMERATE constant

I don't see the point in it.
This commit is contained in:
Clownacy 2020-01-20 23:54:46 +00:00
parent d04bd94649
commit be533e2f55

View file

@ -48,8 +48,6 @@ static struct
BOOL bSystem; // Basically a 'do not regenerate' flag BOOL bSystem; // Basically a 'do not regenerate' flag
} surface_metadata[SURFACE_ID_MAX]; } surface_metadata[SURFACE_ID_MAX];
#define FRAMERATE 20
BOOL Flip_SystemTask(void) BOOL Flip_SystemTask(void)
{ {
static unsigned long timePrev; static unsigned long timePrev;
@ -63,7 +61,7 @@ BOOL Flip_SystemTask(void)
// Framerate limiter // Framerate limiter
timeNow = SDL_GetTicks(); timeNow = SDL_GetTicks();
if (SDL_TICKS_PASSED(timeNow, timePrev + FRAMERATE)) if (SDL_TICKS_PASSED(timeNow, timePrev + 20))
break; break;
SDL_Delay(1); SDL_Delay(1);
@ -72,7 +70,7 @@ BOOL Flip_SystemTask(void)
if (SDL_TICKS_PASSED(timeNow, timePrev + 100)) if (SDL_TICKS_PASSED(timeNow, timePrev + 100))
timePrev = timeNow; // If the timer is freakishly out of sync, panic and reset it, instead of spamming frames for who-knows how long timePrev = timeNow; // If the timer is freakishly out of sync, panic and reset it, instead of spamming frames for who-knows how long
else else
timePrev += FRAMERATE; timePrev += 20;
Backend_DrawScreen(); Backend_DrawScreen();