Skip to content

fix(registry): register device timeline synchronously#2546

Open
tianma-if wants to merge 1 commit into
heygen-com:mainfrom
tianma-if:codex/vfx-iphone-sync-timeline
Open

fix(registry): register device timeline synchronously#2546
tianma-if wants to merge 1 commit into
heygen-com:mainfrom
tianma-if:codex/vfx-iphone-sync-timeline

Conversation

@tianma-if

Copy link
Copy Markdown

Summary

  • register the vfx-iphone-device paused timeline synchronously
  • keep model readiness limited to screen capture setup
  • remove the double requestAnimationFrame gate from composition startup

Why

The block previously exposed window.__timelines["devices-canvas"] only after both GLTF models loaded and two animation frames elapsed. That violates the synchronous timeline contract and can make renderers wait for the sub-composition polling timeout.

Fixes the device-timeline portion of #2107.

Validation

  • bunx oxfmt registry/blocks/vfx-iphone-device/vfx-iphone-device.html
  • direct lintHyperframeHtml: 0 errors (2 existing tween-overlap warnings)
  • npx hyperframes check against a temporary project copy: Runtime 0 errors, Motion 0 errors; the overall command remains non-zero because the existing hidden screen-texture DOM triggers 18 layout occlusion findings unrelated to this change

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