One other thing that can help improve performance further is to have the Area2D only sync its transform with the parent every couple of frames. Disabling monitoring for the Area2D of enemies will help some.
Very difficult changes:
You can also move the code to C++ via gdextension if you need much better performance, but that's a lot of work. You can also move the swarming behavior to separate thread(I haven't implemented this yet).
I did a similar thing in 3D and have 2000 enemies at 60fps
Steam requires you to disclose AI generated content including code.
Edit: https://www.reddit.com/r/GameDevelopment/s/wP6JYr5STa
Steam requires you to disclose AI generated content including code.
https://www.reddit.com/r/GameDevelopment/s/wP6JYr5STa
Steam requires you to disclose AI generated content including code.
Edit: https://www.reddit.com/r/GameDevelopment/s/wP6JYr5STa
Steam requires you to disclose AI generated code.
https://store.steampowered.com/news/group/4145017/view/3862463747997849618
This part of the docs should help https://docs.godotengine.org/en/latest/tutorials/scripting/instancing_with_signals.html
One other thing that can help improve performance further is to have the Area2D only sync its transform with the parent every couple of frames. Disabling monitoring for the Area2D of enemies will help some.
Very difficult changes: You can also move the code to C++ via gdextension if you need much better performance, but that's a lot of work. You can also move the swarming behavior to separate thread(I haven't implemented this yet).
I did a similar thing in 3D and have 2000 enemies at 60fps
End of this list.
Back to top