Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

GetComponentGroup in jobs vs IJobProcessComponent (...)

Discussion in 'Data Oriented Technology Stack' started by Antypodish, Dec 18, 2018.

  1. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    7,289
    Maybe such topic exists, but my forum search don't yield desired results.
    In such case, please point me to relevant thread, if appropriate.

    So,
    I use both GetComponentGroup (without Inject) in IJob (for single threading) and expect working as well IJobParallelFor;
    and I use IJobProcessComponent / IJobProcessComponentWithEntity.
    For either job type and relevant system application, they work great accordingly.

    But can anyone briefly refresh my knowledge, reading GetComponentGroup?
    If I use it for IJobParallelFor vs instead IJobProcessComponent, (when either case works), is still more preferable to use IJobProcessComponent? Last seams more clean. But in fact, I haven't tested, if GetComponentGroup works with IJobProcessComponent?

    Can anyone confirm please?
    Thx.
     
unityunity