mirror of https://github.com/ioquake/ioq3.git
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:
parent
34d0b78754
commit
ead54782d0
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
/*
|
||||
==============================================================
|
||||
|
||||
|
|
|
@ -756,7 +756,6 @@ int main( int argc, char **argv )
|
|||
|
||||
while( 1 )
|
||||
{
|
||||
IN_Frame( );
|
||||
Com_Frame( );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue