Wake idle Wayland windows after asynchronous updates
This commit is contained in:
@@ -228,8 +228,10 @@ ASCII runs, Unicode glyphs, backgrounds, and decorations are batched; cursor
|
||||
animation reuses prepared terminal rows. Blink holds use timed wakeups, and
|
||||
inactive cursors schedule no animation frames.
|
||||
|
||||
The project uses published crates, with no local Alacritty checkout required.
|
||||
The small [vendored xattr patch](vendor/xattr/PATCH.md) fixes GPUI's transitive
|
||||
Dependencies are pinned to published releases, with no local Alacritty checkout
|
||||
required. The [vendored GPUI patch](vendor/gpui/PATCH.md) restarts Wayland painting
|
||||
when asynchronous output invalidates an idle window; active frames remain paced
|
||||
by the compositor. The [xattr patch](vendor/xattr/PATCH.md) fixes GPUI's transitive
|
||||
Linux `ENOATTR` compatibility issue. `Cargo.lock` records dependency versions.
|
||||
|
||||
## Development
|
||||
@@ -246,12 +248,21 @@ cargo test --locked
|
||||
cargo clippy --locked --all-targets -- -D warnings
|
||||
|
||||
RUST_LOG=psyterm::timing=debug cargo run --locked -- --gui
|
||||
|
||||
# Optional regression check with Weston installed (headless backend, fake seat):
|
||||
cargo build --locked
|
||||
python3 scripts/check-wayland-idle.py
|
||||
```
|
||||
|
||||
`prepare_us` and `paint_us` measure CPU callback time in microseconds. They
|
||||
exclude GPU execution, compositor scheduling, and presentation, so they are
|
||||
not end-to-end input-latency measurements.
|
||||
|
||||
The Wayland regression check creates a private compositor and server. With the
|
||||
cursor hidden, it verifies a quiet window does not keep repainting, then sends
|
||||
terminal output and checks that painting resumes without a screenshot, resize,
|
||||
or desktop input to wake the compositor. It fails on unpatched GPUI 0.2.2.
|
||||
|
||||
Tests cover protocol framing, socket ownership, binary bridge flushing,
|
||||
key/paste encoding, palettes, fonts, cursor curves, rendering assembly, PTY
|
||||
lifecycle, and server reattachment/layout behavior. Pane tests cover natural
|
||||
@@ -259,7 +270,7 @@ shell exit, empty-tab removal, focus preservation, idle directory changes,
|
||||
program/manual name precedence, title resets, and rename persistence. Editor
|
||||
tests cover Unicode selection and composition; protocol tests pin the previous
|
||||
versions’ shutdown handshakes. Stack tests cover insertion, navigation, hidden
|
||||
output, reattachment, and exit cleanup.
|
||||
output, reattachment, exit cleanup, and command bursts without intervening snapshots.
|
||||
|
||||
Live Hyprland checks verified GUI→zygote→server ancestry, a single-threaded
|
||||
zygote, no server GPU descriptors, two simultaneous GUIs, tabs/splits, and shell
|
||||
|
||||
Reference in New Issue
Block a user