Skip to content

Commit

Permalink
- don't allow vid_dontdowait if neither vid_vsync is true nor `vi…
Browse files Browse the repository at this point in the history
…d_maxfps` is set, in order to prevent coil whine
  • Loading branch information
madame-rachelle committed Jan 4, 2025
1 parent 3efaca2 commit 6f927d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/d_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@

EXTERN_CVAR (Int, disableautosave)
EXTERN_CVAR (Int, autosavecount)
EXTERN_CVAR(Bool, cl_capfps)
EXTERN_CVAR (Bool, cl_capfps)
EXTERN_CVAR (Bool, vid_vsync)
EXTERN_CVAR (Int, vid_maxfps)

//#define SIMULATEERRORS (RAND_MAX/3)
#define SIMULATEERRORS 0
Expand Down Expand Up @@ -1880,7 +1882,7 @@ void TryRunTics (void)

bool doWait = (cl_capfps || pauseext || (r_NoInterpolate && !M_IsAnimated()));

if (vid_dontdowait)
if (vid_dontdowait && ((vid_maxfps > 0) || (vid_vsync == true)))
doWait = false;

// get real tics
Expand Down

0 comments on commit 6f927d6

Please sign in to comment.