From: "Donald D. Dugger" Subject: [PATCH 2/3] Set VNC input loop delay to 10 msec Date: Wed, 15 Mar 2006 13:56:56 -0800 Message-ID: <20060315215656.GD14167@los-vmm.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Change the VNC main input loop delay from 1 second down to 10 msec. The 1 second delay was causing significant latency problems with the mouse while there is no measurable overhead in lowering the delay down to 10 msec. Signed-off-by: Don Dugger -- Don Dugger "Censeo Toto nos in Kansa esse decisse." - D. Gale Donald.D.Dugger@intel.com Ph: (303)440-1368 diff -r 7d8efd4f1ac7 tools/ioemu/target-i386-dm/helper2.c --- a/tools/ioemu/target-i386-dm/helper2.c Tue Mar 14 15:18:35 2006 +0100 +++ b/tools/ioemu/target-i386-dm/helper2.c Tue Mar 14 15:50:20 2006 -0700 @@ -447,9 +447,9 @@ int main_loop(void) } } - /* Wait up to one seconds. */ + /* Wait up to 10 msec. */ tv.tv_sec = 0; - tv.tv_usec = 100000; + tv.tv_usec = 10000; retval = select(highest_fds+1, &wakeup_rfds, NULL, NULL, &tv); if (retval == -1) {