Garry's Mod
Garry's Mod

Clearing Cache and Temporary Files

Optimize Garry's Mod performance. Learn to clear cache, temporary files, and shader data from garrysmod/cache and garrysmod/shaders for a smoother game.

Maintaining Performance: Clearing Cache and Temporary Files

Over time, Garry's Mod can accumulate a sificant amount of cache and temporary files. These files, while often necessary for smooth operation, can sometimes become corrupted or outdated, leading to performance issues, crashes, or graphical glitches. Regularly clearing these files is a crucial maintenance step for keeping your game running optimally.

The primary location for Garry's Mod cache files is within your Steam installation directory. Specifically, these files are often found in the garrysmod/cache folder. This folder contains various subdirectories that store downloaded content, compiled shaders, and other temporary data. Corrupted files in this directory are a common cause of game instability.

To clear the cache, you'll typically need to navigate to this folder using your operating system's file explorer. It is important to close Garry's Mod completely before attempting to delete these files. Once Garry's Mod is closed, you can safely delete the contents of the cache folder. Garry's Mod will automatically regenerate these files the next time you launch the game, ensuring you have fresh, uncorrupted data.

Beyond the main cache folder, other temporary files can accumulate:

  • Downloaded Content: Files downloaded from servers (maps, models, etc.) are often stored in the garrysmod/download folder. While not strictly 'cache,' clearing this can sometimes resolve issues if a downloaded file is corrupted.
  • Shader Cache: Garry's Mod, like many Source engine games, compiles shaders for better performance. If this cache becomes corrupted, it can cause graphical issues. Deleting the contents of garrysmod/shaders can help.
  • Workshop Addons: While not temporary, if you suspect a specific addon is causing issues, unsubscribing and resubscribing can sometimes fix corrupted addon files.

Steps for clearing the cache:

  1. Close Garry's Mod.
  2. Locate your Garry's Mod installation folder: This is typically within your Steam library (e.g., Steam/steamapps/common/GarrysMod/garrysmod/).
  3. Navigate to the cache folder.
  4. Delete all files and subfolders within the cache folder.
  5. (Optional) Repeat for the download and shaders folders if experiencing persistent issues.
  6. Launch Garry's Mod. The game will rebuild the necessary cache files.

Regularly clearing your cache can prevent a wide range of problems, from slow loading times and stuttering to outright crashes. It's a simple yet effective troubleshooting step for maintaining a healthy Garry's Mod installation.