3 ms·
This can be done without multiple threads. MicroEmacs does it by checking the keyboard input buffer every once in a while while rendering. If there's a key in i
by WalterBright 4y ago
This can be done without multiple threads. MicroEmacs does it by checking the keyboard input buffer every once in a while while rendering. If there's a key in it, it abandons the rendering to go service the key. When there are no keys in the buffer, it tries rendering again. It works so well you never notice this is happening, you just get instance keyboard response.
- rayiner 4y agoAs I recall GNU Emacs does this too, by default. https://www.masteringemacs.org/article/improving-performance-emacs-display-engine https://www.masteringemacs.org/article/improving-performance...
- WalterBright 4y agoI expect this is normal practice.