There's no way this is correct.

git-svn-id: https://svn.eduke32.com/eduke32@7975 1a8010ca-5511-0410-912e-c29ae57300e0

# Conflicts:
#	source/build/src/sdlayer.cpp
This commit is contained in:
terminx 2019-08-13 14:44:09 +00:00 committed by Christoph Oelckers
parent 3a7ee79554
commit 55e3188afb

View file

@ -92,9 +92,6 @@ char nogl=0;
#endif #endif
static int32_t vsync_renderlayer; static int32_t vsync_renderlayer;
int32_t maxrefreshfreq=0; int32_t maxrefreshfreq=0;
#if SDL_MAJOR_VERSION==2
static uint32_t currentVBlankInterval=0;
#endif
// last gamma, contrast, brightness // last gamma, contrast, brightness
static float lastvidgcb[3]; static float lastvidgcb[3];
@ -1654,8 +1651,6 @@ void setrefreshrate(void)
if (!newmode.refresh_rate) if (!newmode.refresh_rate)
newmode.refresh_rate = 60; newmode.refresh_rate = 60;
currentVBlankInterval = 1000/newmode.refresh_rate;
} }
int32_t videoSetMode(int32_t x, int32_t y, int32_t c, int32_t fs) int32_t videoSetMode(int32_t x, int32_t y, int32_t c, int32_t fs)
@ -1931,13 +1926,7 @@ void videoShowFrame(int32_t w)
OSD_Printf("glfinish time: %2.3f\n", clock.TimeMS()); OSD_Printf("glfinish time: %2.3f\n", clock.TimeMS());
#endif #endif
SDL_GL_SwapWindow(sdl_window); SDL_GL_SwapWindow(sdl_window);
/*
if (vsync)
{
// busy loop until we're ready to update again
while (SDL_GetTicks()-lastSwapTime < currentVBlankInterval) {}
}
*/
lastSwapTime = SDL_GetTicks(); lastSwapTime = SDL_GetTicks();
return; return;
} }