Skip to content

perf(web): reduce renderer work during thread animations - #1295

Merged
nixuuu merged 1 commit into
devfrom
perf/animation-rendering-optimization
Nov 26, 2026
Merged

nixuuu merged 1 commit into
devfrom
perf/animation-rendering-optimization

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Change

  • Determine summary docking and the side panel's placement from their target widths. Use ResizeObserver data for the live floating-summary breakpoint. Keep the existing CSS transitions for the sidebar, side panel and summary.
  • Prepare the composer's paused transitions once per scroll segment. Subsequent frames only seek those transitions to the current scroll progress.

Verification

  • Headless Chromium with a seeded Canopy workspace. Six sidebar toggles produced 1,029 geometry reads on the observed columns before the change and zero after. Width samples matched. The p95 requestAnimationFrame interval was 16.7 ms in both versions.
  • A controlled Chromium composer comparison matched all 25 samples, including reversal and settlement. Animation pause calls fell from 63 to 18 with the same number of seeks. Checked folding and reopening in the live workspace.
  • Checked the summary and side panel at 1,440 px and 410 px, and confirmed navigation restores each thread's panel state without a grid transition.
  • Web typecheck, lint on changed code, and diff checks passed locally. Repository-wide verification runs in CI. Frame presentation in Electron at 120 Hz remains unmeasured.

Refs: #755
Refs: #756
Related: #1294

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 08:01
@nixuuu
nixuuu merged commit 60104c2 into dev Nov 26, 2026
20 checks passed
@nixuuu
nixuuu deleted the perf/animation-rendering-optimization branch November 26, 2026 08:11
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