
The physics module time cost in Unity’s own physics engine mainly comes from FixedUpdate.PhysicsFixedUpdate and ray detection and collision detection in the logic code. The time-consuming composition of the FixedUpdate.PhysicsFixedUpdate function mainly has two parts: Physics.Processing and Physics.Simulate. Generally speaking, we should pay attention to the stack of these two functions, and further, locate