MINIMUM_REPEAT_INTERVAL way too big?

Hello!

Will people get upset if I say that MINIMUM_REPEAT_INTERVAL
in src/events/SDL_keyboard.c is way too high?
It’s set to 30 ms (the same as DEFAULT_REPEAT_INTERVAL).
I was hoping to set the keyboard repeat rate to something
like 10 ms :slight_smile:

It might not even be necessary to have this minimum value -
as far as I can see it’s only a limitation taking up both
lines of code and CPU time (OK very negligible, but…) :wink:

Cheers–
http://www.HardcoreProcessing.com

Will people get upset if I say that MINIMUM_REPEAT_INTERVAL
in src/events/SDL_keyboard.c is way too high?
It’s set to 30 ms (the same as DEFAULT_REPEAT_INTERVAL).
I was hoping to set the keyboard repeat rate to something
like 10 ms :slight_smile:

It might not even be necessary to have this minimum value -
as far as I can see it’s only a limitation taking up both
lines of code and CPU time (OK very negligible, but…) :wink:

That’s fine, and changed in CVS.
Do you really want 100 keyrepeats per second?

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

I actually used 50 reps/second on the Amiga, back when editors scrolled
fast enough to cope with it… :slight_smile:

Nowadays, I always set the interval as low as possible, which is usually 25
ms, rather than 30 ms.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Monday 23 July 2001 06:35, Sam Lantinga wrote:

Will people get upset if I say that MINIMUM_REPEAT_INTERVAL
in src/events/SDL_keyboard.c is way too high?
It’s set to 30 ms (the same as DEFAULT_REPEAT_INTERVAL).
I was hoping to set the keyboard repeat rate to something
like 10 ms :slight_smile:

It might not even be necessary to have this minimum value -
as far as I can see it’s only a limitation taking up both
lines of code and CPU time (OK very negligible, but…) :wink:

That’s fine, and changed in CVS.
Do you really want 100 keyrepeats per second?

Do you really want 100 keyrepeats per second?

that is hardly excessive — my personal settings are 170 ms before
the first repeat, and 12 ms between repeats. (This is with XSun on a
Sparc — for some reason it seems that the X servers on PC hardware
prefer to use the broken keyboard hardware autorepeat instead,
limiting the range of values a bit)

by the way, I think the current implementation of turning off autorepeat
by discarding repeated keys isn’t very satisfactory. First, it relies on
a potentially fragile heuristic. Secondly, and perhaps more important,
it causes a large number of useless messages (and associated context
switches, process sleep/wakeups, socket traffic etc) for no good reason.

it’s probably a good idea to turn off repeat globally (with X11, using
XAutoRepeatOff) when running in non-windowed mode. In windowed mode
it’s perhaps ok to keep status quo (I know you had good reasons to)

Sam Lantinga wrote:

That’s fine, and changed in CVS.

Great - thanks :slight_smile:

Do you really want 100 keyrepeats per second?

Something like that yes :slight_smile: The human nervous system has
excellent timing capabilities when it comes to things
which have constant speed and are predictable - like
how to figure out just when to release the key or to
time things based on a rythm (music / dancing? :slight_smile:

I actually used 50 reps/second on the Amiga, back when editors scrolled
fast enough to cope with it… :slight_smile:

I’m an old Amiga freak too - I guess that’s also where I got my
habits of not wasting too much time waiting for a user interface :slight_smile:

Cheers–
http://www.HardcoreProcessing.com