Large number of particles for PBD cloth simulation crashed #95
-
Hi, I'm using PBD cloth for simulation large and long film, therefore I have a large number of particles in my case. But if a large number of particles are used, maybe around 10,000,000, PhysX crashed suddenly. No prompt, no error code. How can I prevent this crash happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Thanks for reaching out. We already fixed this issue with large particle counts on our development trunk, and it will be in the next major release. The background story is that we used unsigned 32bit integers for our GPU memory allocation sizes, and with 10 million particles, one contact buffer ends up being more than 4GB leading to an integer overflow. The size of that buffer is determined by Which means lowering |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out. We already fixed this issue with large particle counts on our development trunk, and it will be in the next major release. The background story is that we used unsigned 32bit integers for our GPU memory allocation sizes, and with 10 million particles, one contact buffer ends up being more than 4GB leading to an integer overflow. The size of that buffer is determined by
numParticles * maxNeighborhood * sizeof(float2)
- so as long as you keep that below 4GB you should be able to avoid the issue.Which means lowering
maxNeighborhood
is one strategy to work around this, but obviously that could affect the quality of the collisions. If not all cloths need to interact w…