Skip to content

Commit 1f0f5a4

Browse files
committed
copy vid_dontdowait from GZDoom
1 parent 3590de2 commit 1f0f5a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/core/mainloop.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@
9494

9595
CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
9696
CVAR(Bool, r_ticstability, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
97+
CVAR(Bool, vid_dontdowait, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
9798
EXTERN_CVAR(Bool, cl_capfps)
9899
CVAR(Bool, cl_resumesavegame, true, CVAR_ARCHIVE)
100+
EXTERN_CVAR (Bool, vid_vsync)
101+
EXTERN_CVAR (Int, vid_maxfps)
99102

100103
static uint64_t stabilityticduration = 0;
101104
static uint64_t stabilitystarttime = 0;
@@ -561,6 +564,9 @@ void TryRunTics (void)
561564
// will all be wasted anyway.
562565
bool doWait = (cl_capfps || pauseext || (r_NoInterpolate && !M_IsAnimated() && gamestate != GS_CUTSCENE && gamestate != GS_INTRO));
563566

567+
if (vid_dontdowait && ((vid_maxfps > 0) || (vid_vsync == true)))
568+
doWait = false;
569+
564570
// get real tics
565571
if (doWait)
566572
{

0 commit comments

Comments
 (0)