From: cloudwalk Date: Wed, 1 Jul 2020 18:58:22 +0000 (+0000) Subject: Don't let a full server frame occur before sending input events to the server X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=57e07547beb7bc4f363949b174c1c40da218ce73;p=xonotic%2Fdarkplaces.git Don't let a full server frame occur before sending input events to the server git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12771 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index fc46a229..c96584f6 100644 --- a/host.c +++ b/host.c @@ -486,11 +486,6 @@ void Host_Main(void) if(!*sv_random_seed.string && !cls.demoplayback) rand(); - // get new key events - Key_EventQueue_Unblock(); - SndSys_SendKeyEvents(); - Sys_SendKeyEvents(); - NetConn_UpdateSockets(); Log_DestBuffer_Flush(); @@ -666,6 +661,11 @@ void Host_Main(void) // //------------------- + // get new key events + Key_EventQueue_Unblock(); + SndSys_SendKeyEvents(); + Sys_SendKeyEvents(); + if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || ((vid_activewindow ? cl_maxfps : cl_maxidlefps).value < 1))) { R_TimeReport("---");