Skip to content

Isolate app callbacks from render loop - #925

Open
wouterlucas wants to merge 1 commit into
mainfrom
feat/protect-raf-granular
Open

wouterlucas wants to merge 1 commit into
mainfrom
feat/protect-raf-granular

Conversation

@wouterlucas

Copy link
Copy Markdown
Contributor

Supersedes #819 with a granular approach: no massive try/catch around runLoop.

  • Per-listener emitSafe on animation plus frameTick/idle/active/fpsUpdate/quadsUpdate/criticalCleanup boundaries.
  • handleLoopError plumbing, called in all envs. console.error fallback is dev-only.
  • Loop stays try-free; all try/catch lives in a cold helper.

Closes the loop-survival issue from #819 without the hot-path cost.

Per-listener emitSafe plus handleLoopError. Loop stays try-free; console.error fallback is dev-only.

This branch has not been deployed

No deployments
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