Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Performance issues
#4
(20-08-2019, 06:53 PM)Smurfj3 Wrote: Hello thanks for the quick reply, yes I am aware that profiling is the way to go but that's the reason for my post, I should have been more clear though. I can see that ObiSolver.FixedUpdate() and ObiSolver.LateUpdate() are both using a lot and causing huge fps drops. I made some screenshots from 2 different frames that show the exact function that is causing the issue.

[Image: 5f2e480349a383eae124eec7076b7407.png]
[Image: 7eec4644f3be279043ea9751f2ddc522.png]
I did not know about the "well of despair/death spiral" thing, maybe thats because I am still somewhat new to unity.

Thanks a lot,

Jeffrey

From the profiler pics, I can tell two things:

- Rope rendering is taking up too much time. If you're using the extruded rope renderer, try using a less dense rope section asset, maybe 4 or 5 segments are enough instead of the default 8. You can also use the LineRenderer instead, as it is much cheaper than the extruded one. See: http://obi.virtualmethodstudio.com/tutor...modes.html

- Your scene has a bad case of death spiralling. FixedUpdate() is being called 5 times per frame (see the "calls" column in the profiler),  ideally it would be called only once. Good news is things can run at least 5 times faster than they currently are. Try lowering Unity's max fixed timestep, to a small multiple of the fixed timestep (if fixed timestep is set to 0.02, use a max of 0.04 for instance). You can find these settings in the Time Manager: https://docs.unity3d.com/Manual/class-TimeManager.html

Death spiralling can take place in any fixed-timestep engine, not just Unity. So if you're making games where physics play an important role, it is crucial you understand what it is and why it happens, as it can very easily kill your performance.
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