[AD] [WIN] Single input thread patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
A patch that merges the three input threads (system, mouse, keyboard) into a
single one is available at:
http://www.multimania.com/ebotcazou/dev/single_input_thread.zip
After it is applied, the number of concurrently running threads is 3, down
from 5, with the following scheduling priority layout:
- primary thread: NORMAL priority,
- input thread: ABOVE_NORMAL priority,
- timer thread: TIME_CRITICAL priority,
which incidentally is the same as under QNX.
I don't know what to do for the time being with it: on the one hand, it may
improve responsiveness on NT kernel Windows by reducing context switching
and overall system load, on the other hand it tighly couples input from
different sources, so maybe there is the risk of jamming if a single source
is frantically sending input to the system.
--
Eric Botcazou
ebotcazou@xxxxxxxxxx