Reply To: Performance Issue on Xbox One with BT

NodeCanvas Forums General Discussion Performance Issue on Xbox One with BT Reply To: Performance Issue on Xbox One with BT

#15506
atrivedi
Participant

I have found the cause of the garbage and it is indeed in my code. I was able to clean all that up! However, I still see considerable impact to performance on xbox one. The flow of the tree used to (and indeed did in the pictures above) repeat over and over. I have since changed the Action to not call EndAction whenever the agent is at rest.

 

Attached is the relevant part of BT for the Spriteilng – it’s a rather large BT so if you need more context, I’ll be happy to provide it. As you might have guessed, this task on the BT is the follow logic for our little creatures called Spritelings. Some of the structure oddities are from when I didn’t know how to use the tool. Time constraints have not allowed me to go back in and fix it up haha.

 

Also attached is the profiler on PC for a single Spriteling. You can see some functions are called 9 times per frame per Spriteilng. But maybe that’s okay? If I had to guess, I’d say that’s because of they “Dynamic” flag on the conditionals?

 

I’ll post an update soon with the profiler actually running on an xbox one dev kit, but I just wanted to pass this along for now to see if anything stood out.

 

Thank you!

Attachments:
  1. spriteling-bt.png

  2. single-spriteling-call-stack.png