Physics 2d threading

Is it possible to “smooth out” the simulation step over multiple frames?
In other words, stop the main thread from waiting for the physics2d thread to finish?

I am making a game with fluid simulation, and I have thousands of particles.
I tried to increase fixedDeltaTime, but it only separated the performance spikes.
Enabling multithreading helps quite a lot, but not enough.
Any idea how to fix it?

No.

Rigidbodies are not suited to this. You’d be much better simply simulating particle points in a parallel job.

1 Like

Looks like I might need to look into parallel jobs in the future (:

1 Like