Search Unity

Disable whole ComponentSystemGroups at once?

Discussion in 'Entity Component System' started by Guedez, Mar 12, 2020.

  1. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    I am aware that it could be just the DeepProfiler inflating these numbers but
    This whole group of should never have anything to do unless there is at least one Entity with a
    FinalItemReference
    ISharedComponentData

    There also a couple of other groups that are in the same situation, so if it's possible, I'd like to know
    Edit: Forgot picture: https://imgur.com/a/tasU8Fg
     
    Last edited: Mar 12, 2020
  2. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,853
    Not the right forum but if you locate the entities can you just remove those components. Yeah..sloppy workaround to a sloppy problem.
     
  3. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    Not what I meant.
    There are no entities in the world that have
    FinalItemReference
    right now, so all of those systems don't need to update, but they are spending quite a bit of processing time that they don't need to.
    The ideal solution was for there to be a way to create a function that tells the whole group of systems, at once, whenever they should or not update this frame

    Also, what forum should I ask that on? I am pretty sure I am on the right one
     
  4. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,853
    You are correct on both counts. I assumed there was such a named component to dispose and I thought I was on the General Discussion forum.