diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:40:15 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 20:55:07 -0300 |
| commit | a92d7f81fa21598c23cbbe1b0ee827386bdd4f9c (patch) | |
| tree | adef95ea37d7cbddbf1e0792ea4248198c4bad34 | |
| parent | 4aca3f749e7105cdd67d0c445ae280adc3b53310 (diff) | |
| download | pardes-a92d7f81fa21598c23cbbe1b0ee827386bdd4f9c.tar.gz pardes-a92d7f81fa21598c23cbbe1b0ee827386bdd4f9c.zip | |
docs: the render pipeline as the frontends now take a frame: draw.place fills Facts beside the Surface, and a frontend draws and reads its input from the two, never the core (it said "from the Surface alone"); present says whether it showed the frame and one held is owed again; a frontend's own motion is its host's poll_frame in a session and the client loop's again in a client; the settings a frontend draws by reach it in the frame's Facts; the cheatsheet, the book and the site build (zig build cheatsheet, book, site, -Dplatform=tui, to a scratch prefix), core-test's drift test (docs/typ names only words, keys and default tags that exist) passes, and every path, identifier and line cited in the added lines exists on pardes-merge22 (the checker in .scratch/sketch/reorg/pardes-docs-arch/check.py: 454 ok, 0 bad); no code changed, so the suites and the corpus were not run
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| -rw-r--r-- | docs/render-pipeline.md | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/docs/render-pipeline.md b/docs/render-pipeline.md index 05bc8cfa..4f3cc7a5 100644 --- a/docs/render-pipeline.md +++ b/docs/render-pipeline.md @@ -15,7 +15,8 @@ frontend keeps the little it draws on its own. deadline (`nextWake`: a message's linger, the look-hover preview, a question's hint, a paused Grep, work that resumes a frame at a time); `now`; `poll_frame`; `render` and `present` only when a frame is owed - (`needs_frame`); and `post_present`, whose `Pardes.presented` lets a + (`needs_frame`; `present` says whether it showed the frame, and one it + held is owed again); and `post_present`, whose `Pardes.presented` lets a drag's moving end and a look-hover follow what is under the pointer now. - `advance(now)` steps `.tick`s a `frame_ns` (16 ms) at a time, for the work that resumes a frame at a time; a wait is jumped in one step. @@ -24,7 +25,12 @@ frontend keeps the little it draws on its own. owner and focus; a body's first line and the text it shows, `Region.line` and `Region.doc`), the layers a pixel shell draws at the tagline's pitch and with compact context rows, the placements, the - cursor and the palette (`Chrome`). Nothing on it moves. + cursor and the palette (`Chrome`). Nothing on it moves. Beside it, + `draw.place` fills one record, `Facts` (surface.zig): the view's size, + each open pane's rectangle, tag rows and kind, and the settings a + frontend draws by. A frontend draws, and turns its input into events, + from the Surface and its Facts, not from the core, so a client draws + its own view as a session's own frontend does. - A placement (surface.zig's `Placement`) is a picture over the cells, a pane's at a time and lowest first: its pixels (`raster`: RGBA, straight alpha), the part shown (`src`), the cells it lies over and is clipped to @@ -41,9 +47,10 @@ frontend keeps the little it draws on its own. ## The frontends' own -Each draws these on its own clock, from the Surface alone, and draws their -frames itself while they move (the last frame again: the tty's -`poll_frame`, the window's loop), pacing its own waits: +Each draws these on its own clock, from the Surface and its Facts alone, and draws their +frames itself while they move (the last frame again: a session's own +frontend through its host's `poll_frame`, a client's through the client +loop's `again`, runtime/client.zig), pacing its own waits: | what | tty | window | from | |---|---|---|---| @@ -55,9 +62,9 @@ frames itself while they move (the last frame again: the tty's | `Pet` | (unsupported) | a sprite in the workspace tag's blank end (gui/pet.zig) | the grid's first row; SDL's ticks | | a placement | a kitty image placed over its cells, or glyph art in them (Art.zig) without kitty graphics or when its pane asks | a texture by key, scissored to its cells, or glyph art when its pane asks | the frame's placements | -The settings these read are plain bytes in the core's settings, dumped -and replicated as any other; nothing a frontend keeps goes back to the -core. +The settings these read are the core's settings, plain bytes dumped and +replicated as any other, copied into the frame's Facts; nothing a frontend +keeps goes back to the core. ## The window's composition |
