26-06-2024, 08:58 AM
(25-06-2024, 03:38 PM)balaji.v Wrote: Hi, I have installed the packages but still its slow only. please find the profiler data link.
https://drive.google.com/file/d/1n1VJB7s...sp=sharing
Keep in mind you must disable the jobs debugger and safety checks when running Burst code in-editor, otherwise it will be much slower due to the debugging/checks overhead. See "Performance" in the manual:
http://obi.virtualmethodstudio.com/manua...kends.html
Regarding your profiler session: you're updating all physics in the scene 17 times per frame.
This likely means your max allowed timestep is too high, and the workload for each individual update too great.
To reduce the max allowed timestep, go to Unity's Time settings and set max allowed timestep to a small multiple of your timestep (eg. if you're using 0.02 as the timestep, set the max to 0.02 - 0.06)
Zooming into an individual update shows most of the time is spent calculating collisions between particles. If you have a folded towel, it's a lot more efficient to simulate it as a softbody instead of simulating it as cloth and relying on self-collisions to do all the work keeping the folds from penetrating each other.
kind regards,