Skip to content

Optimize animated trail rendering#115

Merged
spencerc99 merged 2 commits intomainfrom
codex/perf-animated-trails
May 7, 2026
Merged

Optimize animated trail rendering#115
spencerc99 merged 2 commits intomainfrom
codex/perf-animated-trails

Conversation

@spencerc99
Copy link
Copy Markdown
Owner

Summary

  • Reduces per-frame work in the animated trails hot path by caching finished trail frames, avoiding redundant SVG/path mutations, and reusing frame scratch collections.
  • Preserves the newer trail overlap behavior by layering active path groups so active heads paint over earlier or finished trail bodies.
  • Memoizes movement canvas trail settings and keeps the trail visual style comparator current.

Validation

  • git diff --check
  • bun --bun run vitest run website/shared/utils/__tests__/trailAnimation.test.ts website/shared/styles/__tests__/trailRenderers.test.ts
  • bun --bun run vitest run in extension (117 tests passing)
  • bun --bun run build in extension/website

Notes

The website build still emits pre-existing Sass deprecation warnings. The extension tests still emit the existing participant fallback stderr logs.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 6, 2026

Open in StackBlitz

bun add https://pkg.pr.new/@playhtml/common@115
bun add https://pkg.pr.new/playhtml@115
bun add https://pkg.pr.new/@playhtml/react@115

commit: ff12a30

@spencerc99 spencerc99 force-pushed the codex/perf-animated-trails branch from 14c350b to ff12a30 Compare May 7, 2026 05:21
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying we-were-online-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: ff12a30
Status: ✅  Deploy successful!
Preview URL: https://537d13f1.we-were-online-website.pages.dev
Branch Preview URL: https://codex-perf-animated-trails.we-were-online-website.pages.dev

View logs

@spencerc99 spencerc99 changed the title [codex] Optimize animated trail rendering Optimize animated trail rendering May 7, 2026
@spencerc99 spencerc99 marked this pull request as ready for review May 7, 2026 05:37
@spencerc99 spencerc99 merged commit 36d5e32 into main May 7, 2026
5 checks passed
@spencerc99 spencerc99 deleted the codex/perf-animated-trails branch May 7, 2026 06:19
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