From 6403c7291f66eca1603ac5314d9dadce15f84724 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 4 Apr 2023 20:55:09 +1000 Subject: [PATCH] - 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. --- source/core/mainloop.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index 6302cbb87..5ebfd0cbf 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -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; }