Looks like that helped a lot. also I was calling the recalculate method every few seconds and it looks like thats not nessisary... so thats a x2 improvement right there :)
I made recalculateFollowDistances async, it now processes in batches of 1000 and uses queueMicrotask
Discussion
No replies yet.