Integrated youurayy's input lag fix (which was long overdue)

This commit is contained in:
leilei-
2016-06-02 02:33:07 -04:00
parent 22d8f94415
commit 3b1646bf1e
4 changed files with 10 additions and 4 deletions

View File

@@ -967,7 +967,7 @@ static void IN_ProcessEvents( void )
IN_Frame
===============
*/
void IN_Frame( void )
void IN_Frame( qboolean in_com_frame )
{
qboolean loading;
@@ -996,7 +996,7 @@ void IN_Frame( void )
IN_ActivateMouse( );
/* in case we had to delay actual restart of video system... */
if ( (vidRestartTime != 0) && (vidRestartTime < Sys_Milliseconds()) )
if( !in_com_frame && ( vidRestartTime != 0 ) && ( vidRestartTime < Sys_Milliseconds( ) ) ) // youurayy input lag fix
{
vidRestartTime = 0;
Cbuf_AddText( "vid_restart\n" );