Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved Different chunk sizes and 128 entities limit

Discussion in 'DOTS Dev Blitz Day 2023 - Q&A' started by JesOb, Aug 23, 2023.

  1. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,081
    In past Unity say that may be it will be possible to optimize game by having different chunk sizes to have better entity packaging.

    Do you still have those plans and roughly where?

    The same about 128 entities limit. With current Memory Heavy Transforms implementation it is understandable that it is almost impossible to have more than 128 entities per chunk but for any memory optimized archetypes it is not true. It is price (1 branch per IJobChunk -> if(ChunkCapacity > 128)) for having capacity more than 128 and another 128 bit mask in header. So performance wise it almost free to have 256 entities in chunk.

    256 is not 400 like some users have in 0.51 but better than 128 for sure.

    What plans UT have for exposing bigger capacity chunks?
     
  2. jivalenzuela

    jivalenzuela

    Unity Technologies

    Joined:
    Dec 4, 2019
    Posts:
    67
    I think it's likely, but not certain, we'll allow variable chunk sizes in the future. It's a safe enough change, but there are some details in the technical design that need to get worked out with respect to other changes that mean I can't commit to a timeline.

    There's no plan to change the 128 entity limit at present.
     
    JesOb likes this.