simple question,is there any way can pre deserialize the tree?

NodeCanvas Forums Support simple question,is there any way can pre deserialize the tree?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16520
    liunliun
    Participant

    I found that StartBehaviour(node_bt) is so slow although in async mode , is there any way i can save the graph instance in memory and simpliy copy it when using.

    #16527
    Gavalakis
    Keymaster

    Hello,

    You could pre-instantiate the graphs (or the GraphOwner) at the start of the game and call StartBehaviour on them only when you want to use them. The option “On Start: Do Nothing” in the inspector of the GraphOwner is something that may help with this approach so that the behaviour does not start automatically when the GraphOwner is instantiated.

    Please let me know if that helps.

    Thanks.

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

    #16537
    liunliun
    Participant

    Thanks for your reply.

    But it is still slow when deserialize.

    because my game will dynamic instantiate npc,so i cannot preinstantiate them because i don’t know how many or what kind i will need.

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