10-12-2019, 01:37 PM
(This post was last modified: 10-12-2019, 01:39 PM by josemendez.)
(10-12-2019, 01:16 PM)Wattosan Wrote: Hi,
I am not using deep profiling.
An example frame:
Editor loop takes 46.1% of calculations, 2 calls and 8.35 ms. Profiler takes 3% and 0.55 ms.
PlayerLoop in total takes 50.6% and 9.15 ms.
ObiSolver.LateUpdate() takes 21.1% and 3.88 ms.
FixedUpdate.ScriptRunBehaviour takes 6.8% and 1.24ms. 5.9% of 6.8% and 1.09 of 1.24 ms of this is ObiSolver.FixedUpdate().
These two are also the highest performance demanding operation.
Next is FixedUpdate.PhysicsFixedUpdate with 4.7% and 0.87 ms. This has quite a lot of sub calculations with the maximum taking 0.6% (0.11 ms).
Then comes Camera.Render with 3.8% and 0.69 ms.
Substeps property of the solver is set to 1. Every constraint calculation in the solver is active and for each constraint solver the Iteration count is 3 and relaxation is 1.
Sequential evaluation: Distance, Particle Collision, Collision, Skin, Stretch Shear Bend Twist, Chain
Parallel evaluation: Bending, Particle Friction, Friction, Volume, Shape Matching, Tether, Pin, Stitch, Density.
All rods use the following constraints: Stretch Shear, Bend Twist, Chain, Tether, Pin (there is 1-2 pins for each rod).
All ropes use the following constraints: Distance, Bending, Tether, Pin (1-2 pins for each rod).
There are 4 rods and 2 ropes.
Using Unity 2019.1.14f1.
Ok, so the simulation takes 1.2 ms (ObiSolver.FixedUpdate) and rendering (ObiSolver.LateUpdate) 3.8 ms, right? (FixedUpdate.PhysicsFixedUpdate is Unity's physics)
That could be within normal ranges, I was under the impression that simulation alone was taking 4-7 ms.
I assume you're using the default Extruded renderer for the ropes, correct? Are you using smoothing?