Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Allocator option use cases

Discussion in 'Entity Component System' started by twfarro, Jul 17, 2018.

  1. twfarro

    twfarro

    Joined:
    Nov 23, 2013
    Posts:
    23
    Hey all

    Can someone explain the use cases for the different Allocator options?

    I assumed Persistent was for when the NativeContainers were class member, not local variables, butt he examples in the Job Code Cookbook all make and dispose of NativeArrays using Persistent allocation in the update loop.

    Thanks!
     
  2. dartriminis

    dartriminis

    Joined:
    Feb 3, 2017
    Posts:
    157