mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-04 18:34:41 +03:00
fd755831f2cae4e36206f28b06b205a7a53063e1
To minimize rendering, the input must be handled in a separate thread. To see, why, consider the optimal rendering solution: renders are only necessary when the pty has data that changes the terminal state, OR there is a window event which changes the graphics state. When not drawing, the render thread is to remain parked at a condition variable, and it's not possible to handle input while parked! Thus, we need a separate thread. In addition to adding the separate thread, each subsystem thread is now spawned in a separate function to (hopefully) improve readability.
Languages
Rust
95.8%
Shell
3%
GLSL
0.9%
Makefile
0.3%