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

improve animations #119

Open
wonder-mice opened this issue Oct 1, 2018 · 1 comment
Open

improve animations #119

wonder-mice opened this issue Oct 1, 2018 · 1 comment

Comments

@wonder-mice
Copy link

I'm creating this issue to brain storm ideas on how animations can be improved to run smoothly even for large data sets.

Problem is that d3 animates on CPU by updating DOM values "manually" via timer. While flexible, with large node count transition FPS drops dramatically. For my data set size I have 2-3 frames per 750ms transition.

Generally, this can tackled from following directions:

  1. Animate nodes as a group, to avoid setting individual properties of each node
  2. Distribute node transitions over time by sequentially animating subsets of nodes
  3. Use simpler animations, like opacity change that doesn't require layout and rendering of individual nodes
@spiermar spiermar added the enhancement New feature or request label Oct 8, 2018
@spiermar
Copy link
Owner

spiermar commented Oct 8, 2018

Not sure if 3 applies, since nodes will have to change size for zoom. 1 seems interesting, but need to investigate how to get it implemented using the current structure.

@spiermar spiermar added this to the 3.0 milestone Oct 23, 2018
@spiermar spiermar self-assigned this Oct 23, 2018
@spiermar spiermar removed this from the 3.0 milestone Oct 12, 2021
@spiermar spiermar removed their assignment Oct 12, 2021
@spiermar spiermar added feature-request and removed enhancement New feature or request feature-request labels Oct 12, 2021
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

No branches or pull requests

2 participants