Skip to content

fix: count the grid's commits on a property, not on the root element - #313

Merged
xAlcahest merged 1 commit into
mainfrom
a-counter-that-costs-nothing
Sep 12, 2026
Merged

xAlcahest merged 1 commit into
mainfrom
a-counter-that-costs-nothing

Conversation

@xAlcahest

Copy link
Copy Markdown
Collaborator

Summary

The render counter added with N159 wrote document.documentElement.dataset.gridRenders on every commit of the grid, and the grid commits with the playhead. An attribute written on <html> is the most expensive place to put one: it can cost the whole document a style recalculation, and the runner draws through llvmpipe. CI run 34689311401 then went red on video-frame-keys.spec.js, the whole file, on a forty second wait for a single frame step.

The counter is a plain property now, which touches no DOM and invalidates nothing.

Said plainly: this is not a proved cause. That spec passes here, ten of ten, and the failure is the runner's alone. What is established is the other half: nothing in src depends on the identity of the selection set, so the no-op that change also made cannot stop an effect from firing. What is left in it that touches the app at any rate is this counter, and the cost is gone rather than argued about.

Changes

  • src/components/CueList.tsx: the commit counter lives on a window property instead of a data attribute on the root element.
  • e2e/specs/grid-selection.spec.js: the check reads the property.

How to verify by using the app

Nothing changes on screen.

Verified on Linux. Full gate green, 87 spec files and 516 tests, verdict line GATE GREEN, and the N159 check still reads the count it is there to read.

@xAlcahest
xAlcahest merged commit cc3aa60 into main Sep 12, 2026
11 checks passed
@xAlcahest
xAlcahest deleted the a-counter-that-costs-nothing branch September 12, 2026 11:21
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