[NodeCanvas] Subtrees update interval

Forums 💬 NodeCanvas 🗨️ General Discussion [NodeCanvas] Subtrees update interval

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12993
    leanon00
    Participant

      Hello!
      It seems that the sub trees are ticked at a lower rate when the main behaviour tree update interval is not 0. In my case 0.1.

      #12996
      leanon00
      Participant

        [attachment file=”Unity_D029LWlmx2.gif”]

        #12995
        leanon00
        Participant

          well… after some tests it seems that the tick rate is ok.. only the runtime is not updated properly. Will update the same when you tick a behaviour tree manually.
          But I found another problem playing with the “Wait” action: If the update interval is not 0, the wait time needs to be multiplied with the update interval value so it will reflect the actual seconds. -> ActionTask.elapsedTime is not updated properly??

          Soo.. ActionTask.elapsedTime should be DateTime.now – startTime?

          You can test it with

          #12994
          Gavalakis
          Keymaster

            Hello there,

            The “Update Interval” parameter, sets how often the Behaviour Tree updates. So an Update Interval of “3”, will only update the Behaviour Tree once every 3 seconds, therefore if you have a Wait action task that waits for 1 second, it will not matter since the Behaviour Tree (and thus the Wait action task) will only be updated and return its Status only once every 3 seconds.

            Is your goal to update the graph slower? If so, I can add an option for that like “Update Speed”, but once again, “Update Interval” is simply how often the graph updated rather than how fast.

            Please let me know if that makes sense 🙂
            Thanks.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.