- Update player camera angles right before drawing a frame.

* Also stops situations where `GameInput::getInput()` was being called incessantly while in the menu, during screenjobs, etc.
This commit is contained in:
Mitchell Richters 2023-04-04 20:55:09 +10:00
parent 0eba341ac1
commit 6403c7291f

View file

@ -436,6 +436,11 @@ void Display()
screen->BeginFrame(); screen->BeginFrame();
screen->SetSceneRenderTarget(gl_ssao != 0); screen->SetSceneRenderTarget(gl_ssao != 0);
//updateModelInterpolation(); //updateModelInterpolation();
if (!SyncInput())
{
I_GetEvent();
gameInput.getInput(inputScale);
}
gi->Render(); gi->Render();
DrawFullscreenBlends(); DrawFullscreenBlends();
drawMapTitle(); drawMapTitle();
@ -603,11 +608,6 @@ void TryRunTics (void)
gi->Predict(myconnectindex); gi->Predict(myconnectindex);
#endif #endif
} }
if (!SyncInput())
{
I_GetEvent();
gameInput.getInput(inputScale);
}
return; return;
} }