- transitioned Duke to the new main loop.

Everything compiles, but hasn't been tested. Doing a safety commit first.
This commit is contained in:
Christoph Oelckers 2020-08-30 12:02:32 +02:00
parent 0c455acaa2
commit d59284c96b
15 changed files with 89 additions and 345 deletions

View file

@ -81,6 +81,7 @@
#include "v_video.h"
#include "glbackend/glbackend.h"
#include "palette.h"
#include "build.h"
CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CVAR(Bool, r_ticstability, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
@ -183,11 +184,15 @@ static void GameTicker()
{
default:
case GS_STARTUP:
artClearMapArt();
gi->Startup();
break;
case GS_LEVEL:
gameupdatetime.Reset();
gameupdatetime.Clock();
gi->Ticker();
gameupdatetime.Unclock();
break;
case GS_MENUSCREEN:
@ -371,7 +376,10 @@ void TryRunTics (void)
gi->Predict(myconnectindex);
#endif
}
gi->GetInput(nullptr);
if (!cl_syncinput)
{
gi->GetInput(nullptr);
}
return;
}