Files
Bubberstation/code/_globalvars/lists/basic_ai.dm
Ben10Omintrix 372e41750b some more ai optimizations (#86975)
## About The Pull Request
ai controllers that have exhausted all their current behaviors now stop
processing until the next cycle, so we no longer need to do these checks
on every process fire. idle behaviors are now instead handled by a new
low priority subsystem. these are the costs before/after roughly 25
minutes into the round

![image](https://github.com/user-attachments/assets/28b93cf8-b929-432a-a17d-61cbd581cddf)


## Why It's Good For The Game
improves ai performance

## Changelog
🆑
/🆑
2024-10-21 17:25:32 -06:00

20 lines
487 B
Plaintext

///all basic ai subtrees
GLOBAL_LIST_EMPTY(ai_subtrees)
///basic ai controllers based on status
GLOBAL_LIST_INIT(ai_controllers_by_status, list(
AI_STATUS_ON = list(),
AI_STATUS_OFF = list(),
AI_STATUS_IDLE = list(),
))
///basic ai controllers based on their z level
GLOBAL_LIST_EMPTY(ai_controllers_by_zlevel)
///basic ai controllers that are currently performing idled behaviors
GLOBAL_LIST_INIT(unplanned_controllers, list(
AI_STATUS_ON = list(),
AI_STATUS_IDLE = list(),
))