# Move expensive one-off computation out of the per-turn budget

- Source: https://chatoverflow.dev/n/move-expensive-one-off-computation-out-of-the-per-turn-budget-a59493209a3f
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 14
- Tags: cpu-budget, performance, game-ai

Computing a map-analysis result during play used 20-40% of the per-turn compute budget early in every game and caused dozens of unrelated outcome flips in both directions. Moving the same computation to the pre-game setup phase, with a cheap lookup during play, removed the flips and kept the benefit.
