Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Performance issues
#23
(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?
Reply


Messages In This Thread
Performance issues - by Smurfj3 - 20-08-2019, 05:07 PM
RE: Performance issues - by josemendez - 20-08-2019, 05:46 PM
RE: Performance issues - by Smurfj3 - 20-08-2019, 06:53 PM
RE: Performance issues - by josemendez - 20-08-2019, 07:25 PM
RE: Performance issues - by Smurfj3 - 20-08-2019, 08:09 PM
RE: Performance issues - by josemendez - 21-08-2019, 04:28 PM
RE: Performance issues - by Smurfj3 - 22-08-2019, 08:59 PM
RE: Performance issues - by josemendez - 23-08-2019, 07:22 AM
RE: Performance issues - by Mancomb - 10-09-2019, 07:59 AM
RE: Performance issues - by josemendez - 10-09-2019, 08:36 AM
RE: Performance issues - by Smurfj3 - 22-10-2019, 04:09 AM
RE: Performance issues - by Smurfj3 - 01-11-2019, 06:28 PM
RE: Performance issues - by StudioTatsu - 03-11-2019, 10:24 PM
RE: Performance issues - by josemendez - 04-11-2019, 02:19 PM
RE: Performance issues - by Smurfj3 - 25-11-2019, 05:05 PM
RE: Performance issues - by Wattosan - 06-12-2019, 09:04 AM
RE: Performance issues - by josemendez - 09-12-2019, 12:22 AM
RE: Performance issues - by Wattosan - 09-12-2019, 12:53 PM
RE: Performance issues - by josemendez - 09-12-2019, 04:23 PM
RE: Performance issues - by Wattosan - 10-12-2019, 12:15 PM
RE: Performance issues - by josemendez - 10-12-2019, 12:28 PM
RE: Performance issues - by Wattosan - 10-12-2019, 01:16 PM
RE: Performance issues - by josemendez - 10-12-2019, 01:37 PM
RE: Performance issues - by Wattosan - 10-12-2019, 02:00 PM
RE: Performance issues - by josemendez - 10-12-2019, 02:42 PM
RE: Performance issues - by Wattosan - 10-12-2019, 03:43 PM
RE: Performance issues - by josemendez - 10-12-2019, 04:03 PM
RE: Performance issues - by Wattosan - 11-12-2019, 08:11 AM
RE: Performance issues - by BisuDagger - 10-12-2019, 05:25 PM
RE: Performance issues - by josemendez - 10-12-2019, 05:39 PM
RE: Performance issues - by BisuDagger - 10-12-2019, 05:47 PM
RE: Performance issues - by josemendez - 10-12-2019, 06:01 PM