Skip to content

Conversation

@majido
Copy link
Contributor

@majido majido commented Jun 20, 2019

The Animation Worklet does not require or depend on the worklet running in a parallel execution context. In another word, it is valid and reasonable to run Animation Worklet on the main rendering thread. Similar to other Houdini primitives, the worklet is allowed to run on a different thread. This is an implementation detail that engine can take advantage of to improve animation smoothness.

Given that threading model is an implementation detail, I move most of that discussion to the Explainer.

The only aspect of that is relevant to the specification is "async" nature of worklet animation timing model (which enables the parallel execution mode). This is already discussed in "Worklet Animation timing model" and thus I moved the discussion of valid main thread sync opportunities for worklets to be part of that section.

@majido majido requested a review from flackr June 20, 2019 15:40
@majido majido force-pushed the remove-threading branch from 6801377 to 44c036a Compare June 20, 2019 15:45
@majido majido merged commit ec95c92 into w3c:master Jun 24, 2019
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