Moving an enemy requires only a small calculation using its position, direction, and velocity, but retrieving that data can make the CPU wait. A CPU cache stores data close to where it is processed, so cached data is faster to access than data in main memory. Organizing data so the CPU retrieves more of what the logic needs can make better use of the cache. section 1.2.1
Figure 1.4 The cache sits directly on the CPU die and is physically small. Retrieving data from the cache is significantly faster than retrieving data from main memory.

The figure shows the cache’s location on the CPU die and its faster access compared with main memory. section 1.2.1



