Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. 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

Is there a multithreaded AI solution for Unity?

Discussion in 'General Discussion' started by Stranger-Games, Jul 29, 2020.

  1. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    315
    Hi,

    I am creating a mobile game with about 50 enemies on screen at the same time. The rendering was solved using Mesh Animator.
    However what about the AI?
    I was considering Behavior Designer but it seems to be single threaded.
    I can create my own AI using Jobs and burst compiler but wanted to know if there are out of box solutions that I am not aware of.

    Thanks for advance.
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    8,067
    It is 50 enemies and not 50 thousand. Not much point in trying to multithread it unless you're running into performance problems.
     
  3. ShilohGames

    ShilohGames

    Joined:
    Mar 24, 2014
    Posts:
    2,808
    I would recommend building your own custom solution for your specific game using DOTS. The Jobs system in DOTS is far more scalable than a typical multi-threaded system.
     
  4. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    315
    I am already having performance problem with simple AI and physics.
     
  5. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    315
    Thank you. That seems to be the most plausible solution.
     
unityunity