Antoine: Well, the idea was to
Owen Densmore

In your simulation, are you doing the computation work (ie computing how agents react) and the render work on the same thread?

What I was trying to say is that if you represent your collection of agents only as typed arrays, you can transfer that data instantly between threads. So you can do the heavy computation on one thread and the animation on the main thread.

Like what you read? Give Antoine a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.