Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WaitForAllTasks spent a lot of time!
#13
(21-09-2017, 04:19 PM)josemendez Wrote: Hi!

The issue with your project is the "bottle_3" mesh. It has about 3600 triangles, which is extremely dense for a MeshCollider. This is causing 3,6 million triangle/particle collision tests with theĀ fluid per frame. Also, most of these triangles are clumped in the bottom or around the border of the container in a very tight space, so spatial culling can do very little to avoid having to test them all.

By moving this container away from the fluid jet, the simulation time goes down to bout 2-3 ms in my computer. Getting it close to the jet again, and simulation time goes up to 20-25 ms.

Try using a simpler mesh for the collider. Note that you can (and should) use different meshes for rendering and physics, as it is common in video games.

Hi jose,

Thank you. It's really the cause. But I have made the bottle_3's meshcollider to using inflate mesh. And i saw the triangles of the collider had been reduced a lot. The inflate mesh for the collider didn't work?? I was comfused. Can you tell me why?
Reply


Messages In This Thread
RE: WaitForAllTasks spent a lot of time! - by sunyifeng83 - 22-09-2017, 03:48 AM