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

Go back to position Verlet? #158

Open
mbostock opened this issue Mar 15, 2020 · 1 comment
Open

Go back to position Verlet? #158

mbostock opened this issue Mar 15, 2020 · 1 comment
Labels

Comments

@mbostock
Copy link
Member

When this module was broken out for D3 3.x, we switched from position to velocity Verlet. I believe the idea was to avoid certain ordering effects and instabilities as a result of forces incrementally modifying node positions as they ran. However, the new force layout feels… more sluggish than the old one. Here’s an example:

https://bl.ocks.org/mbostock/7881887
https://observablehq.com/@d3/clustered-bubbles-2

Going back to the D3 3.x method of integration would be disruptive (for custom forces), but it’s worth considering.

@Fil
Copy link
Member

Fil commented Jun 25, 2020

I don't notice any sluggishness nor a big difference in the time to reach an arbitrary energy threshold?
See https://observablehq.com/d/5a863352b0e1c1a7

It seems possible for each force to decide on offering a choice as .method("velocity" || "position")

@Fil Fil added the idea label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants