Mail Archives: djgpp/1996/09/10/14:44:05
Samuel Vincent <svincent AT cs DOT sonoma DOT edu> said:
> 1) This would slow the game down by an indeterminable rate, switching to
> real mode, calling the old interrupt, (who knows what incredibly slow
> process lies in this new chain of interrupt code), switching back to
> protected mode..
How fast can you type? The repeat rate of the keyboard is maximum 25cps.
Hardly any noticeable effect due to mode-switching. People should put
thing in perspective before complaining about rm/pm mode-switching. The
32-bit platform enhances the performance a lot more than the drawbacks.
> There are only 2 possibilities. Pass the key and fill the 16 character
> buffer, causing beeping and unplayability along with a random commandline
> upon quitting the game. Or do not pass the key, and cause tsr's that have
> hooked the keyboard interrupt to miss those keys while the game is
> running.
3rd possibility; flush the keyboard after each poll (set the head-index
at 40h:1Ch = tail-index at 40h:1Ah)
Gisle V.
- Raw text -