Skip to main content

What is CPU cache, and why is it so important for gaming?

AMD’s 7800X3D and 7950X3D hold the top spot in CPUs for gaming, not because they have the most cores or the highest clock speeds, but because they have the most cache. But what is CPU cache, anyway? It’s a small quantity of super-fast, rapid-access memory built into the chip itself, helping it get the data it needs for operations at blazing speed.

The returns aren’t linear, though — there’s a reason the 7950X3D doesn’t have additional cache on all of its cores. In fact, there are some downsides to having lots of extra cache to work with, even if it does help push up gaming performance. Here’s everything you need to know about CPU cache.

Recommended Videos

What is CPU cache?

AMD Ryzen 7 5800X3D chip.
Image used with permission by copyright holder

Cache is the amount of memory that is within the CPU itself, either integrated into individual cores or shared among some or all cores. It’s a small bit of dedicated memory that lives directly on the processor so that your CPU doesn’t need to fetch information from your system RAM every time you want to do something on your PC. Every processor has a small amount of cache, with smaller CPUs getting perhaps just a few kilobytes while large CPUs can have many megabytes worth of cache.

Get your weekly teardown of the tech behind PC gaming
Check your inbox!

But why is cache necessary if we already have fast SSD storage, and even faster RAM? It’s all about performance. In the 1990s, RAM speed wasn’t keeping pace with CPU needs, presenting a problem for CPU designers. The solution was to add local cache to the chips themselves.

Although cache has limited capacity compared to RAM, its high speed makes up for it. The only downside is that it’s expensive to pack memory into a tiny chip, so it’s typically not been used in larger quantities. With 3D V-Cache, however, AMD found a way to make it work, and now we have higher-performing game chips to show for it.

How does cache work? L1, L2, L3 explained

The mainstream adoption of cache resulted in more nuanced implementations of cache and RAM until we ended up with the memory hierarchy, with cache at the top, RAM in the middle, and storage at the bottom. This tiered approach allows critical data for the CPU to be physically closer to the processor, reducing latency and helping your PC feel snappy.

The modern memory hierarchy.
Carlos Carvalho

Cache has its own hierarchy, or cache levels, which are split into L1, L2, and L3 cache. These are all kinds of cache, but they perform slightly different functions.

L1 cache is the first level of cache and also the smallest, usually divided into L1 instruction or L1i and L1 data or L1d. Each core within a CPU has its exclusive chunk of L1 cache, which is usually only a few kilobytes large. The kind of data stored in L1 cache is stuff that the CPU just used or expects to use imminently. If the CPU needs data that isn’t in the L1 cache, it goes to the next level: L2.

Like L1 cache, L2 cache is often exclusive to a single CPU core, but in some CPUs, it’s shared between multiple cores. It’s also much, much larger; for example, each P-core in the Core i9-12900K has 80 kilobytes of L1 cache, as well as 1.25 megabytes of L2 cache, nearly 16 times as much. However, larger caches have higher latency, which means it takes more time for communication to happen between the CPU core and the cache. When CPUs want to accomplish things in a matter of microseconds or even nanoseconds, the slightly higher latency of L2 cache does matter. If a CPU can’t find requested data within L2 cache, it asks the next level: L3.

L3 cache is a big deal: It’s shared between some or all cores within a CPU, and it’s big. The 7950X3D, for example, has 128MB of L3 cache with its bolted-on 3D V-Cache, while it only has 16MB of L2 cache. The latency of L3 cache is even worse than L2, but having a large L3 cache is really important to prevent the CPU from needing to ask the RAM for needed data. Except for storage, RAM has the worst speed and latency in the memory hierarchy, and whenever the CPU needs to access the RAM for required data, things can grind to a halt.

Some CPUs even have L4 cache, but it usually functions as RAM that’s on the CPU package. Some of Intel’s first 14nm CPUs based on the Broadwell architecture included 128MB of embedded DRAM, and the company’s Sapphire Rapids server CPUs can come with HBM2, which is kind of used like an extra level of cache.

Does CPU cache matter for gaming?

AMD CEO holding 3D V-Cache CPU.
AMD

CPU cache makes a big difference for gaming. Although single-threaded performance, instructions per clock (IPC), and clock speed have traditionally been said to be the most important factors in gaming performance, it’s become very clear that cache is probably the most important factor of all in the rivalry between AMD and Intel.

Cache is so important for gaming because of how games are designed today. Modern games have a lot of randomness, which means that the CPU constantly needs to execute simple instructions. Without enough cache, your graphics card is forced to wait on your CPU as the instructions pile up and cause a bottleneck. You can see an example of how much of a difference that makes with AMD’s 3D V-Cache technology in the CPU performance graph in gaming below.

Overall gaming performance for the Ryzen 7 7800X3D.
Jacob Roach / Digital Trends

We’ve seen a trend toward more cache for gaming in recent years. AMD has been increasing its CPU cache quantities for years, and doubled down with its 3D V-Cache technology on the Ryzen 7 5800X3D and its successors in the Ryzen 7000 generation

Intel has been playing catch-up with AMD, and its latest generation CPUs have more cache than ever before, helping them remain competitive in gaming. It seems likely that cache quantities will continue to rise in the coming years, further pushing gaming performance limits.

Matthew Connatser
Former Digital Trends Contributor
Matthew Connatser is a freelance writer who works on writing and updating PC guides at Digital Trends. He first got into PCs…
AMD buying Intel? It’s on the table
A tray of Intel Core Ultra CPUs.

We think of AMD and Intel as exactly what they are -- fierce rivals. However, the U.S. government is encouraging Intel to consider a merger with a rival, such as AMD, to counteract the intense financial trouble the company has been in over the past several months, according to a report from Semafor.

Intel just released its earnings for the third quarter of the year, where the company revealed that it had lost $16.6 billion. Year-over-year, Intel's net profit margin has dropped by 6,064.76%. That's not a typo. Intel is bleeding money, and according to the report, the U.S. government sees the chipmaker as too important to go under. At the moment, Semafor reports that talks between the government and Intel are "purely precautionary," but multiple options to recover the brand are on the table.

Read more
AMD’s Ryzen 7 9800X3D is official, and it shakes things up in a big way
Pads on the AMD Ryzen 7 7800X3D.

We all knew it was coming. A string of rumors over the past several months has pointed to AMD releasing the Ryzen 7 9800X3D on November 7, but the company itself just confirmed the new CPU. It's looking for a spot among the best processors, packing 3D V-Cache on top of an eight-core Zen 5 CPU in order to improve gaming performance.

True to rumors we've seen this week, AMD is pricing the CPU at $479, which is nearly $30 more expensive than the Ryzen 7 7800X3D. AMD claims that the new chip provides an average gaming increase of 8% over the last-gen CPU, and 20% faster gaming performance compared to Intel's recent Core Ultra 9 285K. In addition, AMD says that minimum frame rates are up, with the Ryzen 7 9800X3D improving 1% lows in The Last of Us Part One by 31%.

Read more
AMD CPUs just got a major performance update for games
AMD Ryzen 7 7800X3D installed in a motherboard.

Major motherboard brands are gearing up for the release of AMD's upcoming Ryzen 9000X3D processors with BIOS updates that add support for the new CPUs. Alongside support, some brands, such as Gigabyte and Asus, have added an "X3D Turbo Mode," which is said to boost performance by up to 35%.

The update is targeting some of the best processors packing AMD's 3D V-Cache tech, but it might give other AMD processors a boost, too. One user on X (formerly Twitter) took the update out for a spin in Forza Horizon 5 and found a 5% uplift on the Ryzen 7 9700X. That's a far cry from the 35% we've seen quoted by Gigabyte, but it's a promising performance improvement nonetheless considering that this CPU doesn't come with 3D V-Cache.

Read more