bitbrain / beehave

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

Add "Custom" option to Process Thread #267

Open peterpants2 opened 11 months ago

peterpants2 commented 11 months ago

enum ProcessThread { IDLE, PHYSICS, CUSTOM }

I then used this CUSTOM option for finer control via a global script would call x amount of the behaviorTrees each frame. This helped immensely with performance for 50+ nav_agents with skeleton3D animations/sounds/hitboxes. You could have that value be a curve that reacts to FPS or possibly another behavior tree that manages the update rate based on distance.

bitbrain commented 11 months ago

Interesting idea. Just to get this right: custom = off? That's usually what the disabled property on nodes is for (to disable automatic processing)