You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce TUI zero-state animation CPU usage (#14604)
## Description
Reduces the CPU cost of the TUI zero-state animation while preserving
its original 66 ms (~15 FPS) visual cadence.
- Suspends animation repaint scheduling while the terminal is unfocused
and resumes immediately on focus gain.
- Caches logo geometry, reuses projection buffers, and paints the
starfield directly.
- Replaces generic stack composition in the zero state with a
specialized direct compositor while preserving opaque-overlay semantics.
- Adds production-shaped Criterion benchmarks and rendering/focus
regression coverage.
At 120×40, the retained-frame benchmarks improved by approximately 68%
for the built-in logo and 73% for the ASCII logo. Larger terminal sizes
showed greater savings.
Implementation plan:
https://staging.warp.dev/drive/notebook/NHie0i2bcU6ge5gHne0EEC
## Linked Issue
None.
## Testing
- [x] Manually tested the TUI locally with `./script/run-tui`
- [x] `cargo nextest run -p warpui_core --features tui --no-fail-fast`
(559 passed, 7 skipped)
- [x] `cargo nextest run -p warp_tui --features test-util
--no-fail-fast` (947 passed)
- [x] `cargo clippy --workspace --exclude warp_completer --all-targets
--tests -- -D warnings`
- [x] `cargo clippy -p warp --all-targets --tests -- -D warnings`
- [x] `cargo clippy -p warp_completer --all-targets --tests -- -D
warnings`
- [x] `./script/format --check`
- [x] `git diff --check`
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-TUI: Reduced CPU usage while the zero-state animation is
active.
0 commit comments