File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 94
94
95
95
CVAR (Bool, vid_activeinbackground, false , CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
96
96
CVAR(Bool, r_ticstability, true , CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
97
+ CVAR(Bool, vid_dontdowait, false , CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
97
98
EXTERN_CVAR(Bool, cl_capfps)
98
99
CVAR(Bool, cl_resumesavegame, true , CVAR_ARCHIVE)
100
+ EXTERN_CVAR (Bool, vid_vsync)
101
+ EXTERN_CVAR (Int, vid_maxfps)
99
102
100
103
static uint64_t stabilityticduration = 0;
101
104
static uint64_t stabilitystarttime = 0 ;
@@ -561,6 +564,9 @@ void TryRunTics (void)
561
564
// will all be wasted anyway.
562
565
bool doWait = (cl_capfps || pauseext || (r_NoInterpolate && !M_IsAnimated () && gamestate != GS_CUTSCENE && gamestate != GS_INTRO));
563
566
567
+ if (vid_dontdowait && ((vid_maxfps > 0 ) || (vid_vsync == true )))
568
+ doWait = false ;
569
+
564
570
// get real tics
565
571
if (doWait)
566
572
{
You can’t perform that action at this time.
0 commit comments