- 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->SetSceneRenderTarget(gl_ssao != 0);
//updateModelInterpolation();
if (!SyncInput())
{
I_GetEvent();
gameInput.getInput(inputScale);
}
gi->Render();
DrawFullscreenBlends();
drawMapTitle();
@ -603,11 +608,6 @@ void TryRunTics (void)
gi->Predict(myconnectindex);
#endif
}
if (!SyncInput())
{
I_GetEvent();
gameInput.getInput(inputScale);
}
return;
}