Switch composite allocation

Forums 💬 NodeCanvas ⚙️ Support Switch composite allocation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18655
    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 🙂

      #18656
      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!

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