mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-22 00:41:05 +00:00
copy vid_dontdowait from GZDoom
This commit is contained in:
parent
3590de2f2a
commit
1f0f5a413a
1 changed files with 6 additions and 0 deletions
|
@ -94,8 +94,11 @@
|
|||
|
||||
CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
CVAR(Bool, r_ticstability, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
CVAR(Bool, vid_dontdowait, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
EXTERN_CVAR(Bool, cl_capfps)
|
||||
CVAR(Bool, cl_resumesavegame, true, CVAR_ARCHIVE)
|
||||
EXTERN_CVAR (Bool, vid_vsync)
|
||||
EXTERN_CVAR (Int, vid_maxfps)
|
||||
|
||||
static uint64_t stabilityticduration = 0;
|
||||
static uint64_t stabilitystarttime = 0;
|
||||
|
@ -561,6 +564,9 @@ void TryRunTics (void)
|
|||
// will all be wasted anyway.
|
||||
bool doWait = (cl_capfps || pauseext || (r_NoInterpolate && !M_IsAnimated() && gamestate != GS_CUTSCENE && gamestate != GS_INTRO));
|
||||
|
||||
if (vid_dontdowait && ((vid_maxfps > 0) || (vid_vsync == true)))
|
||||
doWait = false;
|
||||
|
||||
// get real tics
|
||||
if (doWait)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue