20-09-2017, 01:57 PM
(This post was last modified: 20-09-2017, 01:58 PM by josemendez.)
(20-09-2017, 01:49 PM)sunyifeng83 Wrote: Hi jose,
Thanks for you reply. I modified the Fixed Timestep to 0.02 and a Maximum Allowed Timestep to 0.06. And now they update 3 times per frame. But it still spent a lot of time(see my attachment). Is there any way to get more performance?
What are your ObiSolver settings? You could try reducing the amount of constraint iterations. If you're not piling a lot of fluid (inside a container for instance) 2 density iterations should be enough.
You can add the ObiProfiler component to your solver and you'll get a very detailed on-screen graph of the core usage in your CPU when you run the scene, and how much time each internal Obi function is taking up. If you could take a screenshot of it I could tell you more. 50 ms/frame is definitely not normal for just 1000 particles, unless you're using a huge/lots of MeshColliders or something similar.
As a reference, the FluidViscosity test scene with 3000 particles takes about 6-8 ms/frame in my computer (a pretty modest 4-core cpu).