>
> > That depends really ... as the loop would merely consist of 1 for each going through the node sprites,
> >
> > No idea how that pans out in performance with nested loops verses the pin node images ... would have to try.
> >
> > But the approach ... is many times more easily to apply, with more variation options.
> >
>
The way I see it with the nested loop you would only do the calculations of distance, while with the pinning, you would do the pinning (one time effort), but more importantly carry around those invisible objects for no (computational) reason.
Very true.
Implementation wise, I would guess the differ comes to how often it needed to be executed.
Every tick ... I'm thinking the pin wins if there are more then a hand full of swarms.
'
Every 0.5 sec, most likely the nested loop with more then a handfull of swarms. With drawback of jank like behavior. Which can be lerped out I guess ...