Hello.

Robert Komar wrote:
The times between the slowdowns would get longer as I
increased the hogthreshold, but would never go away
entirely.  Is this expected or a bug?
I guess the "bug" is too rough definition
for such a small issue.
Anyway the attached patch will probably make
it a bit better.
Does it help?
--- src/base/async/int.c        Thu Jul 17 20:48:51 2003
+++ src/base/async/int.c        Fri Jul 18 20:17:04 2003
@@ -1790,9 +1790,10 @@
 /* Ok now we test to see if the mouse has been taking a break and we can let the 
  * system get on with some real work. :-) */
    if (trigger1 >= config.hogthreshold*200) {
-     if (config.hogthreshold && CAN_SLEEP() && ++trigger >= config.hogthreshold)  {
+     if (config.hogthreshold && CAN_SLEEP() &&
+        trigger++ > (config.hogthreshold - 1) * 20)  {
        m_printf("Ignoring the quiet mouse.\n");
-       usleep(INT2F_IDLE_USECS);
+       usleep(INT15_IDLE_USECS);
        trigger=0;
      }
      trigger1--;

Reply via email to