GDQuest / godot-steering-ai-framework

A complete framework for Godot to create beautiful and complex AI motion. Works both in 2D and in 3D.
http://gdquest.com/docs/godot-steering-ai-framework
MIT License
1.17k stars 81 forks source link

Add parallelism for proximity behaviors #39

Open Razoric480 opened 4 years ago

Razoric480 commented 4 years ago

The current implementation of the proximity behaviors involves iterating over anyone who "fits the bill" of the proximity and then calling a callback on them to act upon the behavior as necessary.

Once it's out of the proximity's hands, the potential for a worker thread or two or more to substantially increase performance is significant, especially when there are a lot of agents.