From: cloudwalk Date: Mon, 20 Jul 2020 17:35:01 +0000 (+0000) Subject: cl_main: Get new input events even if we're supposed to sleep X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=770e52360966ef620d510107b2c420db654a17e0;p=xonotic%2Fdarkplaces.git cl_main: Get new input events even if we're supposed to sleep git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12849 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index ef670d16..31ad52bc 100644 --- a/cl_main.c +++ b/cl_main.c @@ -2723,6 +2723,11 @@ double CL_Frame (double time) CL_VM_PreventInformationLeaks(); + // get new key events + Key_EventQueue_Unblock(); + SndSys_SendKeyEvents(); + Sys_SendKeyEvents(); + if((cl_timer += time) < 0) return cl_timer; @@ -2732,11 +2737,6 @@ double CL_Frame (double time) if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || ((vid_activewindow ? cl_maxfps : cl_maxidlefps).value < 1))) { - // get new key events - Key_EventQueue_Unblock(); - SndSys_SendKeyEvents(); - Sys_SendKeyEvents(); - R_TimeReport("---"); Collision_Cache_NewFrame(); R_TimeReport("photoncache");