diff --git a/src/d_main.c b/src/d_main.c index e6c2f9fe2..dee209711 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -385,6 +385,15 @@ void D_Display(void) if (!dowipe || !melt) { + if (!vid_vsync) + { + if ((!vid_capfps || vid_capfps > 60) + && (gamestate != GS_LEVEL || menuactive || consoleactive || paused)) + I_CapFPS(60); + else if (vid_capfps >= TICRATE) + I_CapFPS(vid_capfps); + } + if (!paused && !menuactive) { if (vid_showfps && !dowipe && !splashscreen && framespersecond) @@ -422,15 +431,6 @@ void D_Display(void) blitfunc(); mapblitfunc(); - if (!vid_vsync) - { - if ((!vid_capfps || vid_capfps > 60) - && (gamestate != GS_LEVEL || menuactive || consoleactive || paused)) - I_CapFPS(60); - else if (vid_capfps >= TICRATE) - I_CapFPS(vid_capfps); - } - return; }