Skip to content

Commit

Permalink
Don't change vid_capfps CVAR if vid_vsync CVAR on
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 12, 2023
1 parent 8fbd5c6 commit 7dcd394
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,10 +1551,9 @@ static void SetVideoMode(const bool createwindow, const bool output)
if (SDL_GL_SetSwapInterval(-1) < 0)
C_Warning(1, "Adaptive vsync is not supported.");
#endif

if (refreshrate < vid_capfps || !vid_capfps)
{
vid_capfps = 0;

if (output)
C_Output("The framerate is synced with the display's refresh rate of %iHz.",
refreshrate);
Expand Down

0 comments on commit 7dcd394

Please sign in to comment.