beehave icon indicating copy to clipboard operation
beehave copied to clipboard

Adding a custom tick thread

Open liamflannery opened this issue 10 months ago • 2 comments

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.

liamflannery avatar Apr 02 '24 06:04 liamflannery

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?

bitbrain avatar Apr 04 '24 16:04 bitbrain

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.

liamflannery avatar Apr 04 '24 21:04 liamflannery