20-09-2017, 01:49 PM
(20-09-2017, 12:38 PM)josemendez Wrote: Hi!
Take a look at this video, it treats exactly the problem you're having:
https://www.youtube.com/watch?v=sUVqa-72-Ms
Basically, reduce the Max Physics Timestep setting (ProjectSettings->Time) in Unity to avoid your physics being updated 12 (!) times each frame -as the profiler shows in your screenshots-. They should not update more than 2-3 times frame.
FYI, "WaitForAllTasks" waits for all parallel Obi tasks to end, since they're spawned and done in multiple threads. So this function actually waits for all the simulation work to be done by the engine.
Edit: If you need some approximate settings to start with, use a Fixed Timestep of 0.02 and a Maximum Allowed Timestep of 0.06.
cheers!
Hi jose,
Thanks for you reply. I modified the Fixed Timestep to 0.02 and a Maximum Allowed Timestep to 0.06. And now they update 3 times per frame. But it still spent a lot of time(see my attachment). Is there any way to get more performance?