Obi Official Forum
[Solved] Oni.WaitForAllTasks - Slow performance. - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: [Solved] Oni.WaitForAllTasks - Slow performance. (/thread-836.html)



[Solved] Oni.WaitForAllTasks - Slow performance. - Tesrym - 27-01-2019

Using Unity 2018.3.3f1 + HD Render Pipeline
Softbody 4

I have low performance on most scenes.
Deep profiler image attached highlighting Oni.WaitForAllTasks.
No errors or warnings, except for Plastic Sheet scene.*

Affected scenes:
Deformable Barrels
Elastic Character
*Plastic Sheet (The wall in this scene is missing a mesh, causing NullReferenceException for ObiSoftBody.CreateBones)
Rubber Dragon
---
Ball Pool is OK

This is a clean new project.



In 2018.2.20f1, the profiler has a different look.
No HD Render Pipeline in this project.
Clean project to test the asset.


RE: Oni.WaitForAllTasks - Slow performance. - Tesrym - 29-01-2019

Updated Softbody to 4.0.1
It is now able to reach high framerate, but performance is unstable and can drop by doing nothing.


RE: Oni.WaitForAllTasks - Slow performance. - josemendez - 30-01-2019

(29-01-2019, 03:55 PM)Tesrym Wrote: Updated Softbody to 4.0.1
It is now able to reach high framerate, but performance is unstable and can drop by doing nothing.

Hi,

This is because you're at the verge of death spiralling, which is a very common problem in all physics engines. This will cause Unity to perform two physics steps some frames, instead of only one. Once any two frames take too long to render, it will nosedive into the spiral. Reducing your max fixed timestep (Project->Time->max fixed timestep) and/or removing vsync will probably fix it. See:

https://www.youtube.com/watch?v=sUVqa-72-Ms

Anyway, there's yet another update soon to be released, that boosts performance even further (probably to the 130-170 fps range in your case).


RE: Oni.WaitForAllTasks - Slow performance. - Tesrym - 30-01-2019

(30-01-2019, 08:28 AM)josemendez Wrote: Reducing your max fixed timestep (Project->Time->max fixed timestep) and/or removing vsync will probably fix it.

Editor vsync is off.
I am familiar with the death spiral video, and have tried many different time values but the game always chokes shortly after start.

Obi Cloth on the other hand does not even need time tweaking. It always works Corazón


RE: Oni.WaitForAllTasks - Slow performance. - josemendez - 31-01-2019

(30-01-2019, 04:37 PM)Tesrym Wrote: Editor vsync is off.
I am familiar with the death spiral video, and have tried many different time values but the game always chokes shortly after start.

Obi Cloth on the other hand does not even need time tweaking. It always works  Corazón

Hi,

We have just uploaded version 4.0.2, which should be out shortly. Make sure to try it out, as we have switched to a different compiler in Windows and performance is much, much better. Same for ObiCloth, actually.


RE: Oni.WaitForAllTasks - Slow performance. - Tesrym - 02-02-2019

(31-01-2019, 06:22 PM)josemendez Wrote: We have just uploaded version 4.0.2

That worked.
Your products keep impressing me.
I fired 50 spheres into the barrel deformation scene, and it sits at a rock solid 180 fps. No spikes. Default timings. Everything is moving around so smoothly.


RE: [Solved] Oni.WaitForAllTasks - Slow performance. - _gaoyu_ - 02-02-2019

4.0.2 performance is much, much better.
cheer!