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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Resolved AI driven NPCs

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by lemapp, Dec 8, 2022.

  1. lemapp

    lemapp

    Joined:
    Mar 30, 2020
    Posts:
    22
    So many of the questions asked so far seem like grad school questions. I find that AI driven NPCs eats up processing time. Would it be advantageous to pull some of the coding into DOTS? Thanks. Wanted to know before tackling something that would be a waste of time.
     
  2. IsaacsUnity

    IsaacsUnity

    Unity Technologies

    Joined:
    Mar 1, 2022
    Posts:
    65
    Hey Lemapp, thanks for the question. It really depends on what you're trying to achieve with your AI NPCs. Generally, ECS for Unity is useful if you need to execute common/shared game logic across a large number of entities, which is the case for AI-driven NPCs.

    This is not a guarantee that you will get the performance you're looking for because it depends on how you ultimately implement your game code. Thematically, I can say that we've seen users leverage ECS for AI-driven NPCs use cases pretty successfully. I hope that helps.