Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ObiCloth performance issue
#7
(19-10-2017, 10:18 AM)josemendez Wrote: Hi, 

Each solver has 3000 particles pooled. This means you're allocating 12000 particles, even though only 1500 are being simulated. This is a waste of 87.5% of your memory resources, and some of your processing power too. Try to reduce the size of the pool in each solver to about 500. This will improve performance since particle arrays will be packed tighter and improve cache accesses.

Also, your cloth mesh is thick and double-sided. Done the way you're doing it, this consumes extra performance due to the extra amount of particles and constraints and will also result in simulation artifacts, since the cloth will actually be simulated as a "bag". The space between both sides of the cloth is empty, so nothing will prevent the inner side from passing trough the outer side. It's a lose-lose situation: bad performance, bad results.

Simulated cloth should always be one-sided, if you want to simulate thick cloth then use proxies. Check out the trenchcoat sample scene, and see:
http://obi.virtualmethodstudio.com/tutor...oxies.html

cheers,

Thank you for the advice!

I used to follow the trenchcoat sample, I have made skin map before, not sure when the script isn't there. I have added it back and now it is around 5ms. Is it the expected result?
Reply


Messages In This Thread
ObiCloth performance issue - by stevenwan - 18-10-2017, 10:53 AM
RE: ObiCloth performance issue - by josemendez - 18-10-2017, 12:40 PM
RE: ObiCloth performance issue - by stevenwan - 18-10-2017, 04:15 PM
RE: ObiCloth performance issue - by josemendez - 19-10-2017, 08:07 AM
RE: ObiCloth performance issue - by stevenwan - 19-10-2017, 09:44 AM
RE: ObiCloth performance issue - by josemendez - 19-10-2017, 10:18 AM
RE: ObiCloth performance issue - by stevenwan - 19-10-2017, 10:53 AM
RE: ObiCloth performance issue - by josemendez - 19-10-2017, 11:07 AM
RE: ObiCloth performance issue - by MrBeam - 19-10-2017, 01:49 PM
RE: ObiCloth performance issue - by josemendez - 19-10-2017, 02:20 PM
RE: ObiCloth performance issue - by MrBeam - 19-10-2017, 02:34 PM