![]() Saving the CPU that is normally used to see if this creep needs to do anything this tick. This means that I never loop through all the creeps. Processes are passed the creep name instead of the creep knowing which process controls it. Big Improvements Process per action not per creep If a creep is moving to its target and it was going to take 10 ticks to reduce its fatigue to 0 the only CPU used by that creep is the init process checking if some processes have finished and its move process suspend being reduced by 1. It’s a lot more broken up than the old AI but spends a lot of time suspended.
0 Comments
Leave a Reply. |