Skip to content

Make in-view image reveal concurrent and faster - #4

Merged
ImperialBebek merged 2 commits into
mainfrom
claude/project-thread-j4ysvv
Nov 20, 2026
Merged

ImperialBebek merged 2 commits into
mainfrom
claude/project-thread-j4ysvv

Conversation

@ImperialBebek

@ImperialBebek ImperialBebek commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Requested by Rafly · project thread

Summary

  • Image reveal now uses the real img-fx pixels-mechanic GPU dissolve (the previous version faked it with a 400ms mosaic fade plus a 350ms photo crossfade).
  • Dissolve tuned from ~2.6s to 0.85s and frame rate from 10 to 30fps, set once via the exported PRESETS, setFrameRate and setMaxDpr.
  • Every in-view image starts its reveal immediately and concurrently. All instances share one WebGL renderer, so nothing waits for a previous image. If a mosaic is not warm 320ms after entering view, that image does a concurrent 460ms fade instead.
  • Fixed: prewarmed images below the fold could hit an 8s timeout and pop in without animation.
  • Press feedback is now scale(0.96) over 150ms and skips disabled controls.
  • Reduced motion, print, no-WebGL and software-GPU fallbacks are unchanged.

Testing

  • npm run check and npm test pass (22/22).
  • Playwright with software WebGL: the real dissolve shows mid-reveal frames, and multiple images in view share the same reveal start timestamp.
  • Not tested on a real GPU, where the 0.85s duration should hold. Software GL here ran slower (3 to 4s).
  • Sanity Studio build step skipped locally (needs npm ci --prefix studio).

Generated by Claude Code


Devin Review

Every in-view image now starts its img-fx pixels-mechanic reveal immediately
and concurrently (shared renderer, one frame loop). Dissolve tuned from ~2.6s
to 0.85s at 30fps. Prewarmed-but-offscreen images no longer time out and pop
in. Press feedback uses 0.96 / 150ms and skips disabled controls.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015fQDsPKLDvUA9Ww9WyFHrk
devin-ai-integration[bot]

This comment was marked as resolved.

@ImperialBebek
ImperialBebek merged commit 5317d12 into main Nov 20, 2026
2 checks passed
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.

2 participants