I'm getting sluggish response from the keyboard with INKEY$ when using graphics commands.
Even if all I do is simply plot random pixels, and nothing else, and check INKEY$ after each pixel to exit the program if a key is pressed, the response is very sluggish. The program will go through several more iterations of pixel plotting after pressing a key before exiting. And the longer I let the program run, the more sluggish the response. I'm making sure to use CONSOLE SET FOCUS before each INKEY$, in case the console loses focus due to a mouse click, but that makes no difference in responsiveness. And the REDRAW option doesn't seem to help here either. Not that it is needed for individual pixels, but with other, more complicated graphics, it speeds up the graphics drawing itself, but not the responsiveness of INKEY$.
Does anyone have any suggestions on how to work around this? Is there a better way to get immediate keyboard response on the fly while working with graphics?
Thanks very much.
Even if all I do is simply plot random pixels, and nothing else, and check INKEY$ after each pixel to exit the program if a key is pressed, the response is very sluggish. The program will go through several more iterations of pixel plotting after pressing a key before exiting. And the longer I let the program run, the more sluggish the response. I'm making sure to use CONSOLE SET FOCUS before each INKEY$, in case the console loses focus due to a mouse click, but that makes no difference in responsiveness. And the REDRAW option doesn't seem to help here either. Not that it is needed for individual pixels, but with other, more complicated graphics, it speeds up the graphics drawing itself, but not the responsiveness of INKEY$.
Does anyone have any suggestions on how to work around this? Is there a better way to get immediate keyboard response on the fly while working with graphics?
Thanks very much.
Comment