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 2017-08-21 21:32:24 -05:00
parent 34d0b78754
commit ead54782d0
3 changed files with 10 additions and 1 deletions

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();

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 );
/*
==============================================================

View file

@ -756,7 +756,6 @@ int main( int argc, char **argv )
while( 1 )
{
IN_Frame( );
Com_Frame( );
}