2022-July-21 - 2.6+29cc4a9
Pre-release
Pre-release
Make AI faster by speeding up some combat code. (#10887) This PR speeds up several areas in the code that were showing in performance profiles. With this change, we achieve the following speed ups on a given AI's turn on "Another World" map: Main game thread CPU time goes from 90s to 70s Each of 15 (on my machine) AI combat simulation threads go from 73s CPU time to 52s CPU time The above profiling results were measured with VisualVM, attaching to the game for the entire duration of the AI turn.