Artificial intelligence (AI) drives gameplay—whether you’re talking about a complex system of AI or a simple scripting engine. To really maximize your AI’s potential, it needs to utilize the entire CPU and this means threading. This article examines how to thread a simple AI and some of the challenges in writing an AI that truly scales with multi-core CPUs.
The concepts described in this article were used in the creation of the multithreaded AI of Intel’s Smoke demo. This demo showcases functional and data decomposition with multiple game technologies, including physics, audio, and AI. The source code is free to download at Whatif.intel.com.


