Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

How about determinism for AI Planner?

Discussion in 'AI & Navigation Previews' started by Kichang-Kim, Oct 8, 2019.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,012
    Hi. I have some questions about the determinism on AI Planner.

    1. Is AI Planner's result deterministic between various hardware? especially, between x64 linux, Android and iOS.

    2. Can I control processing time or internal node count for calculating strictly for preserving constant framerate? (like NavMeshQuery.UpdateFindPath)

    Thanks.
     
  2. amirebrahimi_unity

    amirebrahimi_unity

    Joined:
    Aug 12, 2015
    Posts:
    400
    Re: your questions
    1. Currently it is not deterministic in its current form, but that is due to the selection algorithm. This will change in the next version of the planner because we have moved to a bounded heuristic, which no longer uses randomness. We haven't tested on various hardware, but algorithmically the planner should be deterministic.

    2. We're planning to expose an internal node count to limit the planner's planning horizon; I think we could introduce a processing time as well, however, the goal for our planner is to run asynchronously on other threads, so that it will not block main thread performance.
     
    Egil-Sandfeld and Kichang-Kim like this.