29-08-2022, 02:12 PM
(29-08-2022, 11:21 AM)josemendez Wrote: Those values are the defaults, fine for pretty much all cases. Would recommend lowering max fix timestep to a small multiple of the fixed timestep (0.06 or 0.08) to prevent issues, but otherwise they should work fine.
Something doesn't quite add up then, performance should be much better that it currently is. I've tried a setup similar to yours (10 cloth items with 30 particles each, for a total of 300 particles), using the exact same settings on a Core i5 CPU (which is fairly weak by today's standards) I get around 220 fps. This is how my profiler looks like:
I ve tweaked fixed timestep values and I got the same profiler result as yours. 70 vertice 20 clothes on the scene I get 40-50 fps on Xperia XZ which is really good actually considering the phone being so bad.
(29-08-2022, 11:21 AM)josemendez Wrote: What's the size of your cloth, in world-space? Only culprit I can think of at this point is them being very small relative to the solver's default collision margin value (0.02 meters). This will force all particles to collide against pretty much all other particles in the scene, causing both collision detection and contact constraint resolution to do a lot of unnecessary work. If this is the case, either make your cloth objects larger or reduce the collision margin value.
Another possible culprit is that you're using surface collisions together with large particles, this will result in a lot of self-contacts and will drastically reduce performance as warned in the manual.
Just for the sake of answering, size was the twice the size of a primitive cube and surface collisions is disabled.
Still tho the problem I am having is interpenetration, I think there isnt much to do since I have to use low vertice meshes for performance so there will be low amount of particles but how can I change the size of the particles, I couldnt really figure that out if it is possible and also that might be too much to ask but wanted to know if I can also change the positions of the particles from the blueprint aswell, because ccd and iterations didnt really work for me and that is expected I guess since my particles look like this
I am gonna align all the vertices equally for all the meshes.
Thank you for all the help.