Skip to content

feat(fastled): migrate the WASM simulator to a pinned @fastled/gfx release #345

Closed

Description

@zackees

Context

This is the final cross-repository adoption step. Once @fastled/gfx is independently packaged, tested, versioned, and published, FastLED's WASM simulator should consume an exact release so ledmapper and FastLED share one advanced renderer.

FastLED currently has its own Three.js graphics manager, screenmap projection utilities, bloom/iris implementation, and worker rendering shell. Its separate fast WebGL renderer should remain available during the first migration rather than expanding the initial package cutover.

Proposal

Land a coordinated FastLED PR that:

  • Pins an exact @fastled/gfx version and a compatible Three.js version.
  • Uses the approved FastLED adapter to feed frames, screenmaps, FPS, diameter, bloom, and UI state into the package.
  • Routes FastLED's advanced/beautiful Three.js mode through the package worker entry.
  • Retains the existing fast renderer as a capability-selected fallback for the initial migration.
  • Deletes superseded beautiful-renderer, bloom/iris, and projection code after parity is proven.
  • Preserves recording, diagnostics, context-loss behavior, resize behavior, and worker teardown.
  • Runs the shared format, visual-parity, lifecycle, and performance fixtures.
  • Links the FastLED PR and pins the validated package version in this issue.

Acceptance criteria

  • A released, exact @fastled/gfx version is present in FastLED's lockfile.
  • The FastLED WASM frontend builds and serves with the package through its normal toolchain.
  • Advanced/beautiful rendering uses @fastled/gfx; the retained fast backend remains selectable and functional.
  • Shared fixtures meet documented visual and performance tolerances.
  • Recording, resize, diagnostics, context loss, and disposal remain functional.
  • Superseded FastLED beautiful-renderer code is removed rather than left as a second implementation.
  • FastLED CI includes a consumer smoke test that protects future package upgrades.
  • The migration PR and deployed validation URL are linked before closure.

Related issues

Blocked by the package-boundary, export, compatibility, testing, publishing, parity, and adapter issues in the parent meta issue.

Activity

  1. zackees commented on Jul 13, 2026

    @zackees
    OwnerAuthor

    Implementation is blocked on the prerequisite package publication: the exact @fastled/gfx release required by this issue is not yet on npm, and this environment has no npm publishing credentials (npm whoami -> 401). The ledmapper side now has the tag-gated OIDC/provenance workflow (#350), packed-consumer/parity gates (#348/#344), and FastLED-shaped adapter contract (#349). Once gfx-v0.1.0 (or a prerelease) is published, the FastLED compiler can pin that exact version and this migration can be validated/merged.

  2. zackees commented on Jul 13, 2026

    @zackees
    OwnerAuthor

    Implemented via FastLED/FastLED#3621 (merged as 0c7bb67e3c428318a40f4788eb9aab1ae1112df). The WASM frontend now pins the released @fastled/gfx 0.1.0 artifact and Three.js 0.183.2, routes both main-thread and OffscreenCanvas rendering through the package adapter, preserves gfx=0 fast fallback, and removes the superseded Three.js renderer. Consumer validation passed: npm run typecheck and npm run build. Release artifact: https://github.com/zackees/ledmapper/releases/tag/gfx-v0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions