Search Unity

Question How to disable integrity check in edtior?

Discussion in 'Physics for ECS' started by Thermos, Apr 10, 2021.

  1. Thermos

    Thermos

    Joined:
    Feb 23, 2015
    Posts:
    148
    In our project, integrity check of ExportPhysicsWorld takes 4ms-5ms per frame, it can easily drop fps lower than 60, then integrity check will run twice because of fixed update catch up, that can take 7-10ms!!

    All colliders are static, except for player is dynamic. I don't think it's necessary for us to keep integrity checks. So how to disable it so we can get a better performance in editor playmode?
     
  2. Shinyclef

    Shinyclef

    Joined:
    Nov 20, 2013
    Posts:
    505
    I had to comment them out by editing the package... For me they were longer than 5ms. Think it was about 8ms from memory.
     
  3. Thermos

    Thermos

    Joined:
    Feb 23, 2015
    Posts:
    148
    Thanks, seems there is no other way but to copy and edit the package...Now game runs smoothly in editor.
     
  4. papopov

    papopov

    Joined:
    Jun 29, 2020
    Posts:
    32
    Unfortunately, that is the only way at the moment :(