Skip to main content

Complete Pipeline Architecture

The Monolex terminal rendering pipeline consists of 10 distinct stages spanning three process boundaries. This document shows where each control mechanism operates and why both Hz Detection and ACK Gating are necessary.

The Complete Pipeline

The Key Insight

Control Point Summary

Scenario Comparison: 30fps Frontend

Per-Stage Cost Analysis

Cost Summary

Why Both Mechanisms Are Needed

Analogy

Summary

9-Stage Pipeline

From PTY daemon through Rust backend to WebKit frontend, each stage with specific responsibilities.

Two Control Points

Hz Detection at Stage [4] (upstream), ACK Gating at Stage [6] (downstream).

Stage [6] Most Expensive

pull() + hash computation costs ~200µs per call - the main target for Hz optimization.

50% Rust Savings

60Hz to 30Hz reduces Rust-side cost from 5.1ms to 2.55ms per second.