10

EXECUTION MANAGEMENT

THERE ARE only limited processor resources available to a game. Traditionally, most of these have been used to create great graphics: the primary driving force in mass market games. Much of the hard graphical processing is now performed on the GPU, but not all of it. Faster CPUs have also allowed the processor budget given to AI developers to grow steadily, meaning that techniques too costly at one time, can now be implemented on even modest mobile hardware. It is not unheard of for AI to have more than 50% of the processor time, although 5 to 25% is a more common range.

Even with more execution time available, processor time can easily get eaten up by pathfinding, complex decision making, and tactical analysis. AI is ...

Get AI for Games, Third Edition, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.