A gamer adjusts a 10 GB shader cache setting, illustrating smoother gameplay after cached shaders are built.
There are few indignities in modern PC gaming quite like watching a high-end rig choke on a sudden frame-time spike just as a firefight breaks out. You have the fast processor, the NVMe storage, and the capable graphics card, yet the screen freezes for a fraction of a second as if the system just tripped over its own shoelaces. While players routinely blame bloated game engines or background Windows 11 tasks, one recurring culprit is far more mundane: the graphics driver quietly deleting old compiled shaders to free up disk space, forcing your CPU to rebuild them on the fly.

A recent hands-on report by Shaheer Khan at MakeUseOf highlights how adjusting a single setting—NVIDIA’s Shader Cache Size—can curb repeat shader recompilation stutters across a crowded game library. By cross-referencing those findings with official NVIDIA Control Panel documentation, current NVIDIA App support guidance, and PC Gamer’s coverage of similar cache tweaks, we can separate what raising your shader cache limit genuinely solves from the hardware and engine bottlenecks it cannot touch.

A gamer adjusts a 10 GB shader cache setting, illustrating smoother gameplay after cached shaders are built. How Shader Compilation and Cache Eviction Cause Hitching​

Every modern 3D game relies on shaders—programs that govern how lighting, surfaces, shadows, and post-processing effects are rendered down to the pixel. Because developers write shaders in high-level, hardware-agnostic code, your PC must translate that code into native machine instructions tailored to your exact GPU architecture before the graphics card can execute it.

Ideally, that heavy lifting happens once. In some titles, you sit through a lengthy "Compiling Shaders" progress bar on first boot—MakeUseOf’s Shaheer Khan recalls waiting an hour at the initial launch of The Last of Us Part I on PC—while other games, such as Cyberpunk 2077, compile shaders dynamically in the background while you play. Once your CPU finishes translating those instructions, the graphics driver stores the compiled files in a local folder on your system drive so subsequent launches can load them immediately.

The trouble starts when that storage pool runs out of room. According to NVIDIA’s official Control Panel reference documentation, the Shader Cache Size setting (first introduced in Release 495 drivers) controls the maximum amount of disk space the driver is allowed to use for storing compiled shaders. NVIDIA notes that cache requirements vary widely by title, with higher-end games requiring several hundred megabytes apiece, and modern DirectX 12 games generating tens of thousands of individual shader translations.

When your cumulative shader folder approaches its size ceiling, the NVIDIA driver automatically purges older cached shaders to make room for whatever new game you just launched. If you rotate through a large library of modern AAA releases, returning to a game you played a week or two ago can trigger a silent rebuild. Your CPU is suddenly drafted back into compilation duty mid-game, creating intermittent frame-time spikes until the evicted shaders are compiled all over again.

Section Summary:

  • Shaders must be translated by the CPU into GPU-specific machine code before they can render scenes.
  • Compiled shaders are saved to your local drive to prevent repeat compilation on future launches.
  • When the driver's shader cache reaches its storage cap, it evicts older files, forcing previously played games to recompile shaders and stutter when revisited.

How to Adjust Your Shader Cache Size in Windows​

If you regularly bounce between multiple DirectX 12 or Vulkan heavyweights and have plenty of free SSD space on your primary Windows drive, raising the cache ceiling is a straightforward preventative measure.

Via the NVIDIA Control Panel​

As outlined by MakeUseOf and verified by NVIDIA’s Control Panel documentation, you can change the limit globally in a few clicks:

  1. Right-click an empty area on your Windows desktop and open the NVIDIA Control Panel.
  2. In the left navigation pane, select Manage 3D settings.
  3. Under the Global Settings tab, scroll down to Shader Cache Size.
  4. Click the drop-down menu and select a larger allocation that fits your available disk space. According to NVIDIA’s Control Panel reference, the selectable options are Disabled, 128 MB, 256 MB, 512 MB, 1 GB, 5 GB, 10 GB, 100 GB, and Unlimited.
  5. Click Apply in the bottom-right corner.

Control Panel vs. NVIDIA App Defaults: A Crucial Nuance​

Before you arbitrarily pick a number, it helps to check which interface manages your card and what your current baseline actually is. MakeUseOf suggests setting the limit to 5 GB for a large library. However, NVIDIA’s official support documentation for the newer NVIDIA App (updated in May 2026) notes that the app's Driver Default setting is currently 16 GB.

If your system is already running a modern driver profile where the default is 16 GB, manually selecting 5 GB in the legacy Control Panel would actually shrink your cache pool. For players with massive installed libraries and ample NVMe capacity, stepping up to 10 GB (if coming from an older, smaller cap), 100 GB, or Unlimited is the path that genuinely expands headroom. In fact, PC Gamer reported a widely shared community workaround from creator Ki11er Six for Borderlands 4, where raising the NVIDIA Control Panel shader cache size to 100 GB helped curb persistent stuttering on affected rigs. As NVIDIA’s own guidelines advise, the goal is simply to pick a limit large enough to hold the games you regularly play without exhausting your free drive space.

What About AMD Radeon Users?​

While MakeUseOf briefly contradicts itself—stating in one sentence that both AMD and NVIDIA allow custom size limits before noting lines later that AMD manages the cache automatically—AMD’s official Adrenalin software documentation confirms the latter. AMD describes its Shader Cache setting as AMD optimized by default, allowing users to toggle the feature on or off globally rather than exposing a manual megabyte or gigabyte size picker in the standard user interface.

Section Summary:

  • Users can adjust Shader Cache Size under NVIDIA Control Panel > Manage 3D settings > Global Settings.
  • Available tiers range from 128 MB up to 100 GB or Unlimited.
  • Because the modern NVIDIA App’s "Driver Default" is already 16 GB according to NVIDIA support, users looking for extra headroom on large drives should look toward 100 GB or Unlimited rather than dropping down to 5 GB.
  • AMD Adrenalin manages shader cache sizing automatically under its "AMD optimized" profile.

Examining the Benchmarks: Frame Times vs. Average FPS​

When diagnosing shader compilation hitching, staring at your average frames-per-second (FPS) counter will almost always mislead you. A game can cruise along at 90 FPS for ten seconds, freeze for 65 milliseconds while the CPU crunches a newly encountered shader, and still post an enviable average frame rate at the end of the run. The irritation lives entirely in the 1% lows and frame-time spikes.

In his testing for MakeUseOf, Shaheer Khan ran three AAA titles selected from a 15-game installed library on a Windows PC equipped with an NVIDIA GeForce RTX 4060, an AMD Ryzen 7 7800X3D processor, and 16 GB of DDR5 RAM, comparing metrics before and after setting a custom shader cache size:

Game TitleReported 1% Lows (Before -> After)Reported Frame Time (Before -> After)Reported Stutter Spike (Before -> After)
007 First Light42 FPS -> 44 FPS (+4.8%)16.7 ms -> 15.1 ms65 ms -> 42 ms
The Last of Us Part II Remastered38 FPS -> 39 FPS (+2.6%)20.0 ms -> 17.8 ms75 ms -> 58 ms
Cyberpunk 207761 FPS -> 62 FPS (+1.6%)12.5 ms -> 11.4 ms38 ms -> 30 ms

Putting the Numbers in Perspective​

While the reported peak stutter spikes dropped noticeably across all three games, veteran PC tuners should view these numbers with healthy methodological caution. The MakeUseOf report does not specify what the initial cache limit was prior to the tweak, whether the cache folder had actively overflowed before the "Before" pass, what driver build was installed, or how many runs were averaged.

Even more importantly, shader compilation is inherently self-resolving within a single session. As Khan rightly acknowledges in his caveats, simply running a game a second time will naturally produce smoother frame times because the shaders encountered during the first pass have now been compiled and cached. Without isolating an actual cache-eviction event between runs, a "Before and After" test risks measuring the natural smoothing effect of a second playthrough rather than the isolated impact of a larger folder cap.

Section Summary:

  • Shader stutters appear as sharp spikes in frame-time graphs and dips in 1% lows rather than major drops in average FPS.
  • MakeUseOf’s test on an RTX 4060 and Ryzen 7 7800X3D showed lower peak stutter spikes across three AAA titles, though repeat runs naturally smooth out as shaders finish caching.

What a Larger Cache Limit Will Not Fix (And New Tools That Help)​

Expanding your shader cache limit is strictly a retention policy: it stops the driver from throwing away homework your CPU has already finished. It is not a magic wand for every hitch on Windows, nor does it eliminate shader compilation when it is legitimately required. Here are the boundaries every PC gamer should keep in mind:

  • First-Boot Compilation: Launching a brand-new game—or entering a new level in a title that compiles shaders on demand—will still require initial compilation.
  • Graphics Driver Updates: As NVIDIA’s Control Panel reference explicitly warns, installing a new graphics driver deletes the existing shader cache. Even with a 100 GB or Unlimited cap, your games must rebuild their shaders for the new driver version.
  • Engine and Hardware Bottlenecks: Traversal stutter (caused by a game engine streaming assets as you move across an open world), VRAM exhaustion on 8 GB graphics cards, CPU thread bottlenecks, and background system interrupts look very similar to shader hitches on screen but will not respond to cache size tweaks.

NVIDIA’s Auto Shader Compilation Beta​

To address the exact pain point that a larger cache size cannot prevent—the mandatory cache wipe after every driver update—NVIDIA recently introduced a beta feature called Auto Shader Compilation (ASC) inside the NVIDIA App. Requiring GeForce Game Ready Driver 595.97 WHQL or newer, ASC rebuilds DirectX 12 game shaders in the background while your PC sits idle (or on demand via a "Compile Now" menu option) following a driver update. It is off by default, and users can enable it in the NVIDIA App under Graphics > Global Settings > Shader Cache. Keep in mind that ASC still requires you to generate shaders in-game the very first time you download and launch a title.

When You Actually Need to Purge the Cache​

Ironically, there are times when keeping cached shaders is the problem rather than the solution. According to NVIDIA’s support documentation, shader cache files stored on a hard drive or NVMe SSD can occasionally become corrupted, leading to crashes on launch, visual artifacts, or degraded performance. If a single game suddenly begins crashing or glitching after an update, NVIDIA recommends temporarily turning Shader Cache Size to Off in the NVIDIA App, rebooting Windows, and manually deleting the contents of the %USERPROFILE%\AppData\Local\NVIDIA\DXCache, GLCache, and %USERPROFILE%\AppData\Local\NVIDIA Corporation\NV_Cache folders (or using Display Driver Uninstaller's "Clean Shader Cache" option) before turning the cache back on and restarting.

Section Summary:

  • A larger cache only prevents eviction of existing shaders; it does not stop compilation on a game's first launch or after a driver update.
  • NVIDIA’s Auto Shader Compilation beta (available in the NVIDIA App with driver 595.97 WHQL or newer) helps tackle post-driver-update rebuilds for DirectX 12 games during system idle time.
  • If cache files become corrupted and cause crashes or visual glitches, purging DXCache, GLCache, and NV_Cache is the official fix.

For Windows gamers with roomy SSDs and a habit of juggling a dozen massive releases at once, checking your Shader Cache Size in the NVIDIA Control Panel or NVIDIA App is a smart, zero-cost sanity check. Just make sure you are moving the needle upward from the modern 16 GB default—and save the cache wipes for when a corrupted file actually misbehaves.

 

References

  1. My games stuttered until I changed one shader cache setting nobody talks about MakeUseOf 2026-10-16T11:00:17+00:00
  2. Deleting NVIDIA Shader Cache files | NVIDIA nvidia.custhelp.com
  3. nvidia-app-dlss-4-5-dynamic-multi-frame-generation-available-now nvidia.com