Skip to content

A picture the program does not hold yet leaves the JavaScript thread - #13

Merged
explodi merged 1 commit into
mainfrom
from-vendored-mwhma6zj
Nov 15, 2026
Merged

explodi merged 1 commit into
mainfrom
from-vendored-mwhma6zj

Conversation

@explodi

@explodi explodi commented Nov 15, 2026

Copy link
Copy Markdown
Owner
  • A program that says which pictures it holds in memory
    (Ui::Options::holdsAsset) has any other picture read on the UI's reading
    thread and handed to the view when it arrives (View::pictureArrived). The
    view lays out and paints without it meanwhile, so a slow disk no longer
    holds the JavaScript thread. Without the option the view reads pictures as
    before. docs/integrating.md describes it.
  • A posted task's microtask drain is named microtasks in the turn's
    callback, so React's render of what an input's handlers changed reads apart
    from the view's own layout and hit test.
  • A turn names its busiest step: the one whose runs add up to the most of it,
    with their time and how many there were.
  • A row aligned on baselines aligns texts on their first line's baseline,
    rather than on their bottom edges.
  • Kit: Conveyor moves marks steadily along a run, driven by the host so no
    React render happens per frame; a stat list's figures are set in
    mono-11-figures-solid.

Checked in a clone of this branch: deno install --frozen, deno fmt --check, deno lint, deno task check and deno task test (366 passed). The C++ suites run in this repository's workflow.

- A program that says which pictures it holds in memory
  (`Ui::Options::holdsAsset`) has any other picture read on the UI's reading
  thread and handed to the view when it arrives (`View::pictureArrived`). The
  view lays out and paints without it meanwhile, so a slow disk no longer
  holds the JavaScript thread. Without the option the view reads pictures as
  before. `docs/integrating.md` describes it.
- A posted task's microtask drain is named `microtasks` in the turn's
  callback, so React's render of what an input's handlers changed reads apart
  from the view's own layout and hit test.
- A turn names its busiest step: the one whose runs add up to the most of it,
  with their time and how many there were.
- A row aligned on baselines aligns texts on their first line's baseline,
  rather than on their bottom edges.
- Kit: `Conveyor` moves marks steadily along a run, driven by the host so no
  React render happens per frame; a stat list's figures are set in
  `mono-11-figures-solid`.
@explodi
explodi merged commit f8b9647 into main Nov 15, 2026
2 checks passed
@explodi
explodi deleted the from-vendored-mwhma6zj branch November 15, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant