On Tue, Jan 16, 2001 at 07:10:05PM +0100, Lars Gullik Bj&resh;nnes wrote:
> Dekel Tsur <[EMAIL PROTECTED]> writes:
> 
> | I've just notices that in 1.1.6, when holding down the right key (for example)
> | the cursor moves slowly compared to 1.1.5. Since the cpu usage when doing
> | the above is small (~ 5%), I think that the problem is related to the
> | keyboard reading. Looking at the Changelog, I see that Lars changed the
> | keyboard code around 2000-08-15, and indeed, compiling the code from a few days
> | before and few days after shows that this is the cause of the problem.
> 
> I don't consider this a problem. We will not revert to the old code.
> 
> Things will get a bit better when we ditch the xforms 0.88 code.

I've found out that the problem is line 424 in Workarea.C
  if (xke->time - last_time_pressed < 35 // should perhaps be tunable

My keyboard autorepeat rate is 30 repeats/s, namely a 33.3msec between events,
so the code above purges half of the keyboard event.
Changing the threshold to 33 fixes the problem.
I suggest using a lower value (20-25?) so it will not cause problems on
other systems.

Reply via email to