Skip to content

feat(render): wire term-state snapshots into bitty-render grid pipeline #22

Closed

Description

@Xuepoo

Per ADR-0003 dependency rule 3 (bitty-render reads only public Snapshot/Damage-derived render data from bitty-term-state) and the accepted terminal-state-rfc / performance-budget-rfc.

Scope

  • GridRenderer consuming Snapshot + Damage -> FramePlan -> owned DrawList
  • Cell-to-glyph placement honoring width(1|2) and spacer (trailing half of wide chars) cells
  • Atlas upload of GlyphBitmaps via RasterKey caching through GlyphCache + AtlasLayout
  • Owned draw-record types only; GPU vertex buffers stay behind the future platform/GpuContext seam
  • sw-fallback feature exercises the SAME pipeline headlessly end-to-end in tests (snapshot bytes in -> RGBA buffer out)
  • Deterministic-output tests given the same snapshot and font inputs
  • Perf instrumentation counters (cells drawn, glyphs rasterized, atlas hits/misses) documented against performance-budget-rfc render budgets without claiming compliance

Constraints

  • No term-state mutation; read-only snapshot consumption
  • Damage-driven partial redraw semantics stay measurable
  • Minimal Cargo.toml edits: add bitty-term-state path dep to bitty-render

Linked task: CTX-0016. Gates: just check green.

Activity

  1. added a commit that references this issue on Aug 26, 2026
    a9a6338
  2. added
    feat
    area:render
    on Aug 29, 2026
  3. added this to the v0.0.1 milestone on Aug 29, 2026
  4. added
    area:term
    P0
    on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0area:renderarea:termfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions