"AI" currently just waits 20k seconds if there are no actions it can perform. This is inefficient - instead, directed waiting needs to be implemented, that utilises yield to calculate accurate wait time, then set time for that period. As an alternative, this could be replaced with a trigger that provides a copy of a value of the stored resources - if stored >= trigger, AI wakes up. BUT, this would require frequent recalculation of resources - likely better to use directed waiting.
This probably needs to be implemented AFTER an AI that can effectively make decisions about what to choose to upgrade next
"AI" currently just waits 20k seconds if there are no actions it can perform. This is inefficient - instead, directed waiting needs to be implemented, that utilises yield to calculate accurate wait time, then set time for that period. As an alternative, this could be replaced with a trigger that provides a copy of a value of the stored resources - if stored >= trigger, AI wakes up. BUT, this would require frequent recalculation of resources - likely better to use directed waiting.
This probably needs to be implemented AFTER an AI that can effectively make decisions about what to choose to upgrade next