Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use animation frame instead of globaltick event #174

Open
berenddeboer opened this issue Apr 15, 2019 · 1 comment
Open

Use animation frame instead of globaltick event #174

berenddeboer opened this issue Apr 15, 2019 · 1 comment

Comments

@berenddeboer
Copy link
Collaborator

Investigate if it's easier, better and possible to rely in requestAnimationFrame instead of the globaltick event. The latter one relies in diffing the virtual dom, and I'm not sure how scalable that is.

The intend is to use the Elm's animation-frame package.

@berenddeboer berenddeboer changed the title Use animationframe instead of global tick Use animation frame instead of globaltick event Apr 15, 2019
@aforemny
Copy link
Owner

Hi @berenddeboer, as far as I can tell it is not possible to drop globaltick completely, because:

  • you cannot run a JSON decoder from subscriptions, and
  • a component only exists in model once it differs from that component's default state.

There are some instances where we could use animation frame rather than globaltick, but I think we cannot get rid of globaltick altogether.

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

No branches or pull requests

2 participants