Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Towel simulation in Quest
#8
(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.
[Image: QE3jLlk.png]


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,
Reply


Messages In This Thread
Towel simulation in Quest - by balaji.v - 12-06-2024, 07:31 AM
RE: Towel simulation in Quest - by josemendez - 12-06-2024, 07:37 AM
RE: Towel simulation in Quest - by balaji.v - 14-06-2024, 12:38 PM
RE: Towel simulation in Quest - by josemendez - 14-06-2024, 02:27 PM
RE: Towel simulation in Quest - by balaji.v - 25-06-2024, 01:36 PM
RE: Towel simulation in Quest - by josemendez - 25-06-2024, 01:49 PM
RE: Towel simulation in Quest - by balaji.v - 25-06-2024, 03:38 PM
RE: Towel simulation in Quest - by josemendez - 26-06-2024, 08:58 AM
RE: Towel simulation in Quest - by balaji.v - 28-06-2024, 09:27 AM
RE: Towel simulation in Quest - by josemendez - 28-06-2024, 10:31 AM
RE: Towel simulation in Quest - by balaji.v - 28-06-2024, 11:28 AM
RE: Towel simulation in Quest - by josemendez - 28-06-2024, 12:13 PM