Search Unity

OnCollisionStay allocates

Discussion in 'Physics' started by MDADigital, Oct 19, 2020.

  1. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    upload_2020-10-19_21-45-54.png

    I did a profiling pass of our game. Were I noticed something new whenever a item was being touched allocation went up. I boiled it down to OnCollisionStay, and its not our code. its the actual OnCollisionStay that allocates. Even with an empty method signature it allocates.

    Regression bug maybe? Is it a known problem?
     
  2. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    https://unity3d.com/unity/beta/2019.1.0a7

    Seems to be a regression, im using 2019.4.12 and it allocates