[NodeCanvas] Subtrees update interval

NodeCanvas Forums General Discussion [NodeCanvas] Subtrees update interval

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17160
    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.

    #17161
    leanon00
    Participant

    Unity_D029LWlmx2

    Attachments:
    You must be logged in to view attached files.
    #17163
    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

    Attachments:
    You must be logged in to view attached files.
    #17182
    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.

    Join us on Discord: https://discord.gg/97q2Rjh

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