Search Unity

Memory Cost of Convex Collider

Discussion in 'Physics for ECS' started by BobFlame, Jul 23, 2021.

  1. BobFlame

    BobFlame

    Joined:
    Nov 12, 2018
    Posts:
    95
    I'm building game with physics collider scalable, I made convex collider rebuild when their scale changed. So, collider of each entity is unique, referencer count of blobasset is aways 1. Of course this is a waste of memory and maybe performance too. My question is for convex collider, when I created from a bunch of points, how much memory cost of created collider structure?
     
  2. BobFlame

    BobFlame

    Joined:
    Nov 12, 2018
    Posts:
    95
    Along with points, is there additional polygon / face structure cost memory? In general, how much times memory cost comparing to original points data?
     
  3. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    You can use the Collider MemorySize field to get the memory cost.
     
    BobFlame likes this.