diff --git a/src/i_time.c b/src/i_time.c index ee3c8a8f3..d9437c7e9 100644 --- a/src/i_time.c +++ b/src/i_time.c @@ -63,9 +63,10 @@ void I_UpdateTime(fixed_t timescale) enterprecise = I_GetPreciseTime(); elapsedseconds = (double)(enterprecise - oldenterprecise) / I_GetPrecisePrecision(); tictimer += elapsedseconds; - while (tictimer >= 1.0 / ticratescaled) + + while (tictimer >= (1.0 / ticratescaled)) { - entertic += 1; + entertic ++; tictimer -= 1.0/ticratescaled; } realtics = entertic - oldentertics; diff --git a/src/r_fps.c b/src/r_fps.c index 44518ea4d..2c12e6076 100644 --- a/src/r_fps.c +++ b/src/r_fps.c @@ -34,7 +34,7 @@ static CV_PossibleValue_t fpscap_cons_t[] = { #else {TICRATE, "MIN"}, #endif - {300, "MAX"}, + {500, "MAX"}, {-1, "Unlimited"}, {0, "Match refresh rate"}, {0, NULL} diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index 84557e0d2..fcebf3275 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -224,6 +224,7 @@ void OglSdlFinishUpdate(boolean waitvbl) } else SDL_GL_SetSwapInterval(0); + //SDL_GL_SetSwapInterval(waitvbl ? -1 : 0); }