Search Unity

[ReadOnly] [WriteOnly] and order of execution of the jobs

Discussion in 'Entity Component System' started by sebas77, Jan 23, 2020.

  1. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,642
    Are the attributes ReadOnly and WriteOnly somehow used to determine the order of execution of jobs? Are they used to determine data dependency or the order of execution is just the order of the jobs scheduled?
     
  2. Abbrew

    Abbrew

    Joined:
    Jan 1, 2018
    Posts:
    417
    Both. All writes go first in a presumably deterministic order, followed by all the reads
     
    sebas77 likes this.
  3. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,642
    OK a combination of both the strategies seem the only way to handle all the possible cases