Switch composite allocation

NodeCanvas Forums Support Switch composite allocation

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10829
    nexuschip
    Participant

    I don’t know how impactful this allocation is, but i generally try to avoid any allocations in my projects.
    I’m using behavior tree where switch composite is a top node so its getting called on every frame.
    I highlighted line which causes this allocation.
    Its not a showstopper for me just wanted to let you know.
    Altogether great product, can’t possibly imagine not using it 🙂
    On the side node can you filter or add search to your forums, because maybe this question was asked before and there were too many pages to go through
    Edit: Found the Search feature 🙂

    Attachments:
    You must be logged in to view attached files.
    #10833
    Gavalakis
    Keymaster

    Hey,

    Oh.. To be honest that’s a leftover and a bad line of code. 🙂 Please replace the line with simply this:
    current = (int)enumCase.value;

    I am really glad you like and enjoy NodeCanvas by the way!
    Thanks a lot!

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

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