[ioquake3] 12/34: Improve client input responsiveness
Simon McVittie
smcv at debian.org
Fri Sep 8 10:33:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag debian/1.36+u20170908+dfsg1-1
in repository ioquake3.
commit ead54782d05b67e33ba5338fae081ea3c4af45af
Author: Zack Middleton <zack at cloemail.com>
Date: Mon Aug 21 21:32:24 2017 -0500
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.
---
code/qcommon/common.c | 2 ++
code/qcommon/qcommon.h | 8 ++++++++
code/sys/sys_main.c | 1 -
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/code/qcommon/common.c b/code/qcommon/common.c
index 0359a30..fd9f9b1 100644
--- a/code/qcommon/common.c
+++ b/code/qcommon/common.c
@@ -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();
diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h
index 07eebe7..b1224ac 100644
--- a/code/qcommon/qcommon.h
+++ b/code/qcommon/qcommon.h
@@ -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 );
+
/*
==============================================================
diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c
index 586e37a..0598f29 100644
--- a/code/sys/sys_main.c
+++ b/code/sys/sys_main.c
@@ -756,7 +756,6 @@ int main( int argc, char **argv )
while( 1 )
{
- IN_Frame( );
Com_Frame( );
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list