diff options
Diffstat (limited to 'docs')
| -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 |
