mirror of
https://github.com/wez/wezterm.git
synced 2024-12-26 14:54:16 +03:00
fc5ca5a297
Some users mentioned that there's a lag after selecting text on X11. Tracing through, I saw that the we invalidate the window quite a lot when dragging the selection, and the buffer swap could delay for several ms each time while waiting for the vsync. Rather than blocking the GUI thread and making it bog down, this commit adopts a technique similar to the recent Wayland frame sync changes, except that we enforce a minimum of 33ms between frames in our own scheduler to avoid blocking for several ms at a time. This seems to do a decent job of balancing responsiveness during selection with updating the display, and keeps the buffer swap delay down to microseconds. We may want to make this delay configurable. |
||
---|---|---|
.. | ||
examples | ||
src | ||
build.rs | ||
Cargo.toml |