Spinning Globe Optimizing for Large Dataset

I have a spinning globe that I created using the Spinning Globe template that I think I reached a limit for. There are about 28K points that are plotted on the globe, and it doesn’t spin smoothly :confused:.

It looks like it’s plotting every point in every cycle. Is there opportunity for optimizing this? For example, can we plot the points all at once and then simply “run” it? Can we use React?

I’d love any help you can provide as I’m kind of stuck.

Thanks,
David

I always read that when SVG performance becomes an issue with too many rendered elements, you’d use HTML Canvas instead. I never used Canvas to be honest, so I can’t say for sure if it’ll help in your case.

Another thing I might try is using something like this TopoJSON simplifier. It might make things a little smoother, but maybe not by much if the points are the bulk of the issue.

Would memoization help? After the first rotation everything should be super fast.

I’ve heard of using canvas too - I’ll try that approach next.