bitbrain / beehave

🐝 behavior tree AI for Godot Engine
https://bitbra.in/beehave
MIT License
1.85k stars 116 forks source link

Adding a custom tick thread #326

Open liamflannery opened 5 months ago

liamflannery commented 5 months ago

In my project I've changed the addon so that it runs the ticks based on my custom in game minute. Would this be something that's worthing creating a pull request for?

Like you would change this dropdown to In Game Minute or Custom

image

and then maybe have a "tick source" export node that you can drag in and it will connect to the ticked signal within that node. Was thinking this might help with performance.

bitbrain commented 5 months ago

Seems to be a duplicate of #267 - my point in https://github.com/bitbrain/beehave/issues/267#issuecomment-1846744252 was that one could simply set the process mode (of the Godot node itself) to disabled and then tick the tree manually. Is there a good reason why we cannot do that instead?

liamflannery commented 5 months ago

Sorry didn't see 267, they can definitely do that in the same way I just connected the tree to a signal, it just doesn't seem like the intended/supported usage. I was thinking it could be something you point to when people bring up the performance concerns of the tree getting ticked every frame.

I don't think this is a huge issue though because it's not that hard to do for yourself, I just have the code there and can make a pull request if you were interested.