Improve client input responsiveness

Move sampling input to the other side of framerate limiter.

Thanks to Alexander "wareya" Nadeau and Juraj "youurayy" Vitko for
pointing this out.
This commit is contained in:
Zack Middleton committed 2017-08-21 21:40:54 -05:00
1 parent 34d0b78754
commit ead54782d0
3 files changed
+10 -1

No files matched your search

+2
View File
@@ -3162,6 +3162,8 @@ void Com_Frame( void ) {
NET_Sleep(timeVal - 1);
} while(Com_TimeVal(minMsec));
IN_Frame();
lastTime = com_frameTime;
com_frameTime = Com_EventLoop();
+8
View File
@@ -1058,6 +1058,14 @@ int SV_SendQueuedPackets(void);
qboolean UI_GameCommand( void );
qboolean UI_usesUniqueCDKey(void);
//
// input interface
//
void IN_Init( void *windowData );
void IN_Frame( void );
void IN_Shutdown( void );
void IN_Restart( void );
/*
==============================================================
-1
View File
@@ -756,7 +756,6 @@ int main( int argc, char **argv )
while( 1 )
{
IN_Frame( );
Com_Frame( );
}