Nodecanvas – Lots of agents

Forums 💬 NodeCanvas 🗨️ General Discussion Nodecanvas – Lots of agents

  • This topic has 0 replies, 2 voices, and was last updated 8 years ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13752
    marcrasmussen
    Participant

      This might be a very simple question. But I am building an RTS type game where there easily could be 1000+ agents in the scene. I was wondering if Nodecanvas has any performance impact that would limit this? or if there is something I should be aware of.

      #13753
      Gavalakis
      Keymaster

        Hello,

        NC is really very optimized when running and after initialization, but of course the more the agents are and depending on what they (the graphs) are doing, naturally, the more the impact on performance will be.

        Apart from this..natural effect, the only other thing, that I think you should be aware of beforehand, is the fact that initialization, which is done once for each agent, can be slow (even given the fact that I have optimized it a lot) due to the json deserialization taking place, which is pretty much unavoidable and creates allocations. BUT, after initialization, everything should be rock solid in performance with zero allocations except a very few cases (eg certain nodes or tasks in use).

        If you need more information, please don’t hesitate to ask.
        Thanks!

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