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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Raw classes and DOTS?

Discussion in 'Scripting' started by qqqqqqqqqqqqqqqqq1, Jul 1, 2020.

  1. qqqqqqqqqqqqqqqqq1

    qqqqqqqqqqqqqqqqq1

    Joined:
    Jun 3, 2020
    Posts:
    13
    I've been considering implementing DOTS for my project, but I do have a couple questions.

    First, if there are thousands of instances and those instances aren't MonoBehaviour related, is there a way to benefit from the boost? Consider a system which has a Dictionary with thousands of instances of a certain class, these classes are independent of Unity (no UnityEngine etc. dependencies).

    Second, how well does DOTS scale on small amounts of items of different types. What if I have 1000 of different types of objects, each type has 100 Entities, thats total of 100 000 Entities. Will this work about as well as 100 000 Entities of a single type?

    Third, and what about just a small number? If there's only 10 Entities. I know that the improvement is probably immeasurably tiny in that context, but I'm interested in the gist of it. How well does DOTS scale on insanely small amount of objects?
     
    Last edited: Jul 1, 2020
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    qqqqqqqqqqqqqqqqq1 likes this.
  3. qqqqqqqqqqqqqqqqq1

    qqqqqqqqqqqqqqqqq1

    Joined:
    Jun 3, 2020
    Posts:
    13
    Thanks, didn't notice that that existed.