core-agent-ide/codex-rs/tui2/src/tui
Josh McKinney 96a65ff0ed
perf(tui): cap redraw scheduling to 60fps (#8499)
Clamp frame draw notifications in the `FrameRequester` scheduler so we
don't redraw more frequently than a user can perceive.

This applies to both `codex-tui` and `codex-tui2`, and keeps the
draw/dispatch loops simple by centralizing the rate limiting in a small
helper module.

- Add `FrameRateLimiter` (pure, unit-tested) to clamp draw deadlines
- Apply the limiter in the scheduler before emitting `TuiEvent::Draw`
- Use immediate redraw requests for scroll paths (scheduler now
coalesces + clamps)
- Add scheduler tests covering immediate/delayed interactions
2025-12-23 19:10:15 -08:00
..
scrolling feat(tui2): tune scrolling inpu based on (#8357) 2025-12-20 12:48:12 -08:00
alt_screen_nesting.rs fix(tui2): fix screen corruption (#8463) 2025-12-22 19:15:23 -08:00
frame_rate_limiter.rs perf(tui): cap redraw scheduling to 60fps (#8499) 2025-12-23 19:10:15 -08:00
frame_requester.rs perf(tui): cap redraw scheduling to 60fps (#8499) 2025-12-23 19:10:15 -08:00
job_control.rs WIP: Rework TUI viewport, history printing, and selection/copy (#7601) 2025-12-15 17:20:53 -08:00
scrolling.rs feat(tui2): tune scrolling inpu based on (#8357) 2025-12-20 12:48:12 -08:00