From 57e07547beb7bc4f363949b174c1c40da218ce73 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Wed, 1 Jul 2020 18:58:22 +0000 Subject: [PATCH] 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 --- host.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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("---"); -- 2.39.2