mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-01 13:19:09 +00:00
The pipelined POSIX pty reader uses multiple large gather buffers to avoid stalling on Darwin, where pty reads are capped around 1KiB. On Linux this can let bulk terminal producers run too far ahead of terminal parsing/rendering. Frame-style terminal apps such as DOOM-fire can then report very high producer FPS while Ghostty displays stale frames from the buffered stream. Keep the Darwin-tuned 4 x 64KiB pipeline, but reduce non-Darwin read-ahead to 2 x 8KiB so the pty can apply backpressure before multiple frames are queued.