Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Memory Cost of Convex Collider

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

  1. BobFlame

    BobFlame

    Joined:
    Nov 12, 2018
    Posts:
    73
    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:
    73
    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:
    480
    You can use the Collider MemorySize field to get the memory cost.
     
    BobFlame likes this.
unityunity