Game AI & real-time strategy
Micro and macro
Also: micro, macro, micromanagement
Micro and macro are the two layers of play in real-time strategy: micro is the precise control of individual units in combat, macro the higher-level management of economy, production and expansion. Strong players and strong AIs have to handle both at once.
Background
Micro is measured in seconds: pulling wounded units out of fire, kiting with ranged units, focusing fire on the most important target. Macro is measured in minutes: enough workers, constant production, a new base at the right time. Players who shine in battle but neglect production usually lose anyway.
Game AIs are therefore often built in layers. A strategic layer decides goals and economy, for example with a build order and influence maps; a tactical layer commands groups; a unit layer handles micro, often with state machines. The layers exchange only orders and status reports.
In AI design, micro is a fairness issue: a computer can issue any number of commands per second. Many games therefore cap the AI’s reaction time or action rate, so it wins through decisions rather than superhuman precision.
How we do it
From our founder’s experience
The distinction comes from our founder’s experience as an AI developer for real-time strategy in 2000. Our current games have no unit armies, so we mostly use the terms as a thinking tool.
On a small scale, FaxFight shows the same split: micro is the individual fight with its three or six rounds of attack, block and one special move. Macro is the progression around it: experience points, ranks, skill points spent on energy or a zone, and league points per season.
Related terms
- Build orderGame AI & real-time strategyA build order is the planned sequence in which buildings, units and upgrades are produced at the start of a strategy game.
- Influence mapGame AI & real-time strategyAn influence map is a grid laid over the game map in which each cell records how much influence, threat or control a side has there.
- Finite state machine (FSM)Game AI & real-time strategyA finite state machine models behaviour as a fixed set of states with transitions between them, exactly one of which is active at any time.
- Elo rating and leaguesMultiplayerThe Elo rating estimates skill as a number that rises or falls after each match depending on the expected versus the actual result.