Skip to content

perf(studio): virtualize timeline clip windows#2703

Draft
miguel-heygen wants to merge 1 commit into
codex/studio-timeline-d-clip-index-v2from
codex/studio-timeline-d-clip-window-v2
Draft

perf(studio): virtualize timeline clip windows#2703
miguel-heygen wants to merge 1 commit into
codex/studio-timeline-d-clip-index-v2from
codex/studio-timeline-d-clip-window-v2

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

What

Render only visible clip roots and defer horizontal reveal until virtual scroll geometry is ready.

Why

The final scalability boundary must bound clips as well as rows without hiding selected or active clips, losing reveal requests, shifting ticks, or allowing an early reveal to use stale scroll geometry.

How

  • Query the D7 interval index for each visible row and time window.
  • Pin selected, dragged, resized, context-menu, ease-focus, and reveal actors outside the normal window.
  • Keep active-clip lookup, ticks, and reveal behavior stable as clip roots mount and unmount.
  • Defer horizontal reveal until the current virtual scroll snapshot is ready.

This is D8 of the independent Family D draft Graphite stack. Its review base is the immutable, PR-less Family C baseline; Families A-C do not need to merge for this PR to be reviewed. It supersedes legacy PR #2640, which remains open for audit until landing. The unpublished local scroll-deferral source was folded here because the combined diff is 971 changed lines and both changes own the same lifecycle boundary.

Test plan

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (not applicable)

Validated on the exact Family D tip with virtualization, active-clip, reveal, and player-seek coverage; the full Studio suite (2,939 passed; 18 todos); Studio Server files tests (67 passed); both typechecks; formatting/lint/file-size/Fallow gates; and two consecutive strict 50,000-element Chromium passes bounded to 207 mounted clip roots.

Copy link
Copy Markdown
Collaborator Author

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