#TUI lag

1 messages ยท Page 1 of 1 (latest)

sharp monolith
#

hmm - does it flicker? or just get really laggy?

void valley
#

not laggy. flicker is the word I was looking for. It's jarringly flickery when verbosity goes up

sharp monolith
#

that's weird, it's supposed to be using terminal synchronization primitives to avoid that

void valley
#

Do you have a good rec for a screen recorder for mac? I can record try to record it

sharp monolith
#

i think quicktime can do it

void valley
#

It happened both on my work laptop and persona. They are both M4 macs though

sharp monolith
#

trying to repro in ghostty, nothing yet - i'm on linux, can try a mac tomorrow

#

if i run anything huge like dagger checks --scale-out in dagger (~50 checks) on max verbosity, it does start to lag a bit, but i don't see the churning in that video

void valley
#

ooh, forgot to mention. I'm on tmux. Let me try on just ghostty

#

That's it. Just ghostty is much better. So the issue is with tmux :(. The previous TUI didn't have the flicker though.

sharp monolith
#

Ah interesting - do you have a scrollback limit in tmux?

void valley
sharp monolith
void valley
#

That's exactly what I'm seeing. It's crippling tbh. I can't take my eyes off of it sometimes ๐Ÿ˜„

sharp monolith
#

for context, this goes hand in hand with preserving scrollback, which is one of the main features of the new framework. unfortunately when the output exceeds screen height, and content above the viewport has to change, the only real option is to clear and repaint. if the terminal emulator supports synchronized output (ghostty, any good terminal in 2026) you won't notice it happening, but it looks like tmux doesn't support synchronized output: https://github.com/tmux/tmux/issues/4299

though it does look like they merged support for it into master but maybe it hasn't shipped yet? https://github.com/tmux/tmux/commit/1c7e164c22a3cb21d1e281087cd4aaa489d72b84

sharp monolith
#

will look into it soon, thanks for the report and sorry about that! likely need to just go into a less ambitious mode when running in tmux, or minimize offscreen updates for spinners etc. - i'll iterate and try not to sacrifice too much, tmux is important

void valley
#

Thank you! I have't found a good enough alternative. I'm eagerly waiting on ghostty to add session management.

shut portal
#

FWIW this seems to also impact my nvim terminals (which share the same sort of problems as tmux afaik)

sharp monolith
#

makes sense yeah

shut portal
#

maybe over the weekend I'll try "codex, implement synchronized output support for neovim terminals, then update my dev environment to build and use that fork" ๐Ÿ˜„

void valley
sharp monolith
#

@void valley here's a PR if you want to try out a local build (if it's worth the trouble)

#

now it detects when sync write support is missing and limits the UI to the viewport, using an alt screen

void valley
#

I can test on my personal Mac. What's the PR?

sharp monolith