Knob

AI budget

You might say: think budget, CPU budget, time slice, level of detail, compute load

The time and computation allowed for sensing, scoring, planning and search in each update or turn.

What it does
Keeps the opponent inside its performance envelope by spending more effort where it matters and degrading gracefully elsewhere.
Ask
What work fits this slice, and what approximation or deferred work is used when it does not?
Typical
A per-frame or per-turn slice, with time-sliced search and simpler fallbacks when the slice is exhausted.
Trouble
The AI stalls the game, makes every agent think at once, or runs out of time and returns an unfinished plan.

What to look for

  1. A profiler bar for AI time
  2. Search depth or rollout count changing with load
  3. Several agents thinking on staggered slices

Sources

  1. Michael Dawe, Steve Gargolinski, Luke Dicken, Troy Humphreys, and Dave Mark, Behavior Selection Algorithms: An Overview, Section 4.1smaller games for mobile platforms have burst onto the scene, making it important for an AI programmer to know how to get the best behavior out of a short frame time.
  2. Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, ch. 2, p. 46When MCTS is used for real-time decision making a number of challenges become critical. First, the algorithm has limited rollout computational budget which increases the importance of heuristic knowledge.
  3. Ian Millington and John Funge, AI for Games, Third Edition, ch. 2, p. 29Complex AI that does work in games needs to be split into bite-size components that … can be distributed over multiple frames. The chapter on resource management shows how to accomplish this.

Use it on your project

teardown-apply: hold "AI budget" (ai-budget) from the teardown at https://teardownatlas.com/game-ai/ against my project

Paste it into a coding agent that has the teardown skills.

An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal