HELLDIVERS™ 2

HELLDIVERS™ 2

75 ratings
Automatic Cache Cleaning
By アンジェル
How to Automatically Clean the Helldivers 2 Cache to Improve Performance
2
   
Award
Favorite
Favorited
Unfavorite
Why Cleaning Cache?
Helldivers 2 creates a cache of shaders that are used repeatedly to reduce the overall load time of the game. While the principle is great, it can lead to problems if the contents of this cache are not updated correctly.

Think of it like your personal ID card with your photo on it. Because you need it to identify yourself, you carry it around with you. Now, if the photo on the ID is very out of date, or very different for whatever reason, you could be in trouble.

The same problem can occur with outdated cache files, which can cause incompatibilities with newer versions of the game.

Clearing the cache will force the game to recreate these files from scratch. Reduces any cache-related problems that can affect the performance of your game.
Manual Cleaning (Troubleshooting)
To manually clean up your game's cache and local data for troubleshooting, press WIN+R to open the Run terminal and there enter

%USERPROFILE%\AppData\Roaming\Arrowhead\



Confirm with OK and delete the Helldivers 2 folder entirely. Then restart your PC.

That will delete your game's cache and local settings and can help to resolve any cache related issues you might have with logging in / purchasing Super Credits / connecting with friends.

To be on the safe side, when troubleshooting do not forget about verifying your game's files and repairing your Steam Library. If you need pointers on how to do it, check here
https://steamoss.com/sharedfiles/filedetails/?id=3235564264
Automatic Cleaning with Script
The script I am about to share with you will delete the Helldivers 2 game cache, temporary application files, temporary Windows files and your graphics card's shader cache every time you start your PC. So whenever it is necessary, a simple PC reboot will do the trick.

Start by creating a new Text Document and renaming it into e.g. Cleaning.cmd - make sure to get the extension correctly.





Alternaitvely you can also start by opening the Notepad app and save a new file using the Save as function and save it as Cleaning.cmd while selecting All file types while saving.

Select the file to edit



Copy & paste the following code into the file

@echo off del /q C:\Temp\*.* del /q C:\Windows\Temp\*.* del /q "%USERPROFILE%\AppData\Local\Temp\*.*" del /q "%USERPROFILE%\AppData\LocalLow\NVIDIA\PerDriverVersion\DXCache\*.*" del /q "%USERPROFILE%\AppData\Local\AMD\DxCache\*.*" del /q "%USERPROFILE%\AppData\Local\AMD\DxcCache\*.*" del /q "%USERPROFILE%\AppData\Roaming\Arrowhead\Helldivers2\shader_cache\*.*" for /d %%d in (C:\Temp\*) do rd /s /q "%%d" for /d %%d in (C:\Windows\Temp\*) do rd /s /q "%%d" for /d %%d in ("%USERPROFILE%\AppData\Local\Temp\*") do rd /s /q "%%d" for /d %%d in ("%USERPROFILE%\AppData\LocalLow\NVIDIA\PerDriverVersion\DXCache\*") do rd /s /q "%%d" for /d %%d in ("%USERPROFILE%\AppData\Local\AMD\DxCache\*") do rd /s /q "%%d" for /d %%d in ("%USERPROFILE%\AppData\Local\AMD\DxcCache\*") do rd /s /q "%%d" for /d %%d in ("%USERPROFILE%\AppData\Roaming\Arrowhead\Helldivers2\shader_cache\*") do rd /s /q "%%d" exit

So it looks like this. Then save the file.



Now press WIN+R to open the Run terminal and enter

shell:startup

That opens a window to your Autostart folder



Place the file you created with the script into that Autostart folder



And you are done!

Now, every time you start your PC, the script will make sure to clean up your game's cache and other important temporary files that could cause problems if they are out of date.
Thanks for Reading!
If you consider this guide helpful, please consider supporting my other guide as well.

Thank you very much for your support!

https://steamoss.com/sharedfiles/filedetails/?id=3208648129