Search Unity

(DynamicBuffer) Is appending to the same DynamicBuffer in parallel atomic?

Discussion in 'Entity Component System' started by Mr-Mechanical, Nov 2, 2018.

  1. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    This may be a misuse of DynamicBuffer, but I am exploring all possible design approaches. I haven't tested this one yet.
     
    Last edited: Nov 2, 2018
  2. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    Peaked at the source code. Cannot append in parallel to a dynamic buffer. Seems it is not intended for this and doing this will throw an exception. Understandable. Will use a different approach.
     
    Deleted User likes this.