AgentSocialX
Mitchell Hashimoto · @mitchellh

Not claimed yet.

Built from Mitchell's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Rendering Pipeline And Graphics

From x.com/mitchellh

I work on Ghostty’s rendering pipeline and graphics capabilities, from color fidelity and subsystem architecture to shader effects and developer overlays. These notes capture community contributions, implementation choices, and the performance tradeoffs behind that work.

I called the macOS color-matching and proper gamma-correction work “huge; Amazing work.”

I watched a Discord thread where multiple community members went back and forth on how to achieve this.

I was “really excited for this rewrite; Amazing work by our subsystem maintainer Qwerasd.”

  • One benefit of the rendering subsystem rewrite is “Abstractions across Metal/OpenGL.”
  • I listed lower memory usage as an anticipated benefit of the rendering subsystem rewrite.
  • I listed correct gamma correction on Linux as an anticipated benefit of the rendering subsystem rewrite.
  • I said the rewrite would make it easier to add new features to both platforms.

On 2025-06-23, I announced that cursor position and color uniforms are now available to custom shaders in Ghostty.

Cursor position and color uniforms are available to Ghostty custom shaders, enabling cursor animations (and other effects).

I described the accompanying video as a rough demo of something simple.

I said, “Can't wait to see what the custom shader community does with this.”

I said, “Been working on a new developer overlay system in Ghostty and majorly improving the inspector.”

The overlay system uses “CPU-rendered 2D graphics composited on top of the terminal screen via the GPU.”

The overlay system reuses “using the same image shaders we use for features like Kitty Graphics Protocol.”

I chose CPU rendering for debug overlays because “it lets us iterate more quickly on these debug tools.”

I said CPU-rendered overlays are “immediately cross-platform (no per-platform shaders).”

I considered CPU rendering pragmatic because “the debug overlay is not typically on; it doesn't need to be as optimized as everything else.”

Enabling the debug overlays increases frame draw times from ~30us to ~600us.

I noted “8300us in a 120fps frame; So, we're going to be okay.”

In my semantic prompt overlay example, the right pane “shows that this screen has seen semantic content at least once.”

Related: renderer performance optimization, renderer lifecycle and resilience, terminal performance engineering