Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Softbody lags SEVERELY but only during collision
#7
(14-09-2023, 03:18 AM)creekat Wrote: This question might not be an Obi-related question, but how were you able to tell via the Profiler that all physics are being updated 16 times every frame? Where can the value 16 be found? I have always struggled where to look specifically when referring to the Profiler and this gives me a hard time to debug. Maybe you have good references you can recommend on how to read profiler data?

If in Timeline view, the horizontal axis represents time and each bar is a method call, the vertical axis represents the call stack (so a bar/method will have all methods called by it immediately below, if there's nested calls you'll see multiple rows). You can see 16 horizontal bars with the name "FixedUpdate.ScriptRunBehaviourFixedUpdate", which means that FixedUpdate has been called 16 times in a row:

[Image: 8Xtcmls.png]

If in Hierarchy view, there's a "Calls" column that tells you how many times a method has been called during that frame. You'll see a "16" there for "FixedUpdate.ScriptRunBehaviourFixedUpdate". The other columns are:

-"Total" (percentage of the total frame time spent in that method or methods called by it)
-"Self" (percentage of the total frame time spent in that method, excluding methods called by it)
-"GC Alloc" (amount of memory allocated by that method during the frame)
-"Total ms" (milliseconds of time spent in that method or methods called by it, just like "Total")
-"Self ms" (milliseconds of time spent in that method  excluding methods called by it, just like "Self")

Unity's manual is a pretty good source for learning how to read the profiler. See:
https://docs.unity3d.com/Manual/ProfilerWindow.html
https://docs.unity3d.com/Manual/ProfilerCPU.html

kind regards,
Reply


Messages In This Thread
RE: Softbody lags SEVERELY but only during collision - by josemendez - 14-09-2023, 06:26 AM