Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Corsten´s cache & shader removal tool

Featured Replies

  • Author
1 hour ago, JYW said:

But if something states "error" to a user, they're never going to be fine with it.

Corsten, I love your GA AI work.  It's amazing.  But I think your work here needs more time to perfect.  I ran the MSFS Cache Cleaner (MSFS Store) and it worked fine.   But the Nvidia cache tool generated error messages - even with NCP Shader Cache set to Disabled and after a reboot.     Again, in terms of perception, no-one wants to use a tool that generates an error message - even if you tell them it' fine.  👍

Yes there is errors, when you dont have those folders. Not everyone has same cache made than i had. I did also dig up with google, what kind a cache folder there may be and included them also. Better all the options than only the common ones. I may change the phrase for those. Like "folder not found, all clear"

  • Replies 35
  • Views 11.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • New UI -version released! https://flightsim.to/file/71729/corsten-s-cache-shader-removal-tool Changelog 1.7.2025 - added UI version - Scripts moves not anymore to desktop, both versions

  • I have updated this addon to be 2024 combatible. Also updated Nvidia driver cache locations.   https://flightsim.to/file/71729/corsten-s-cache-shader-removal-tool

  • Yes there is errors, when you dont have those folders. Not everyone has same cache made than i had. I did also dig up with google, what kind a cache folder there may be and included them also. Better

Hello, i have downloaded this tool and its wonderfull.

Now MSFS more smooth!

thanks!!!

1 hour ago, Corsten said:

I may change the phrase for those. Like "folder not found, all clear"

That sounds like a great idea.

Bill 😎
FS2024 • Currently in 'GA mode' : A2A Comanche 2024 & Aerostar • Black Square C208, Bonanzas, Barons, TBM850, Dukes • COWS DA40 & DA42 • FSW Legacy, C24R Sierra & C414 • Echo Falco F8L • FFX HJET, Visionjet and P180 2024 • Got Friends A32 Vixxen • FSReborn Sirius TL3000, Sting S4 and Piper M500 • Flyboy Rans S6S • Skyward DA50RG • SWS Zenith CH701, RV-8, RV-10, RV-14, PC12 • Milviz C310R • Air Foil Labs Bristell B23 
TrackIR • BeyondATC • PMS GTN Payware • RealTurb • Axis & Ohs • FS Realistic Pro
9800X3D • RTX 3080 • 64GB DDR5-6000
NPPL licence holder in the UK

Hello,

after execute the .vbs, i et the message: could not find config file.

Can you give me a tip?!

Regards Joachim

Regards Joachim

  • Author
4 hours ago, Prisco said:

Hello,

after execute the .vbs, i et the message: could not find config file.

Can you give me a tip?!

Regards Joachim

So it did not find usercfg.opt. Do you know where it should be?

Edited by Corsten

Hey Corsten,

thanks for replay.

The usercfg.opt is in

C:\Users\xxxxx\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache

Regards Joachim

On AMD I have those cache folders....

spacer.png

  • Author
1 hour ago, Bond said:

On AMD I have those cache folders....

spacer.png

D9 cache? DirectX9? Ok, i will ad those also.

@Corsten  Thanks for the tool. Working perfectly for me.  I had another tool which did some of the same things but I prefer yours. I like that it provides feedback on what it has removed.

Edited by mobeans10

  • Author
1 hour ago, mobeans10 said:

@Corsten  Thanks for the tool. Working perfectly for me.  I had another tool which did some of the same things but I prefer yours. I like that it provides feedback on what it has removed.

I will make it better, with better feedback of script process. I have just priority to fix gamod models to be outside of msfs taxi path bug.

 

Stay tuned.

I just used this mod and it worked well for me.  Absolutely smoother in MSFS.

CPU Ryzen 7800X 3D  RAM 32GB Corsair VENGEANCE DDR5 6000MHz GPU GEFORCE RTX 4090
Monitor AOC AGON AG352UCG UltraWide G-Sync @ 3440x1440
Internal Storage 1TB NVMe PCIe SSD 
External Storage Three 4Tb HDs

  • Author

I have updated the scripts. I need some feedback before i do official update on this.

Download here: https://drive.google.com/file/d/1-LSUn-ruMdUpzdI96Cx_4-Jvgi_QULWa/view?usp=sharing

 

Changelog:

- There is 4 different scripts for 4 different ecosystems: Steam MSFS cache, Store MSFS cache, Nvidia Shader cache, AMD shader cache

- edited pop up windows text, no more error´s. Only feedback of the process.

- removed reading usercfg.opt from MSFS cache scripts. It didnt just work, because packages can be elsewhere, but cache folder are allways in same locations.

 

Cache locations included in these scripts:

Nvidia Shader Cache locations:
- C:\Users\USERNAME\AppData\Local\D3DSCache
- C:\Users\USERNAME\AppData\Local\NVIDIA\GLCache
- C:\Program Files (x86)\Steam\steamapps\shadercache\
- C:\Users\USERNAME\AppData\Roaming\NVIDIA\ComputeCache
- C:\Users\USERNAME\AppData\LocalLow\NVIDIA\PerDriverVersion\DXCache
- C:\Users\USERNAME\AppData\LocalLow\NVIDIA\PerDriverVersion\GLCache

AMD Shader Cache locations:
- C:\Users\USERNAME\AppData\Local\AMD\DxCache
- C:\Users\USERNAME\AppData\Local\AMD\DX9Cache
- C:\Users\USERNAME\AppData\Local\AMD\DxcCache
- C:\Users\USERNAME\AppData\Local\AMD\OglCache

Steam MSFS cache locations:
C:\Program Files (x86)\Steam\steamapps\common\MicrosoftFlightSimulator\cache
C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator\cache
C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator\SceneryCache
C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator\SceneryIndexes
C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator\DCE

Store MSFS cache locations:
C:\Users\USERNAME\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\SceneryCache
C:\Users\USERNAME\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\SceneryIndexes
C:\Users\USERNAME\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalState\cache
C:\Users\USERNAME\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalState\DCE


 

@Corsten Still working good for me. I'm using the Steam and Nvidia scripts.

Useful scripts. What if i have steam installed on another drive? Can i edit scripts in e.g. notepad to change paths to mine?

Edited by brosss

Regards, Bartek Staniszewski

  • Author
33 minutes ago, brosss said:

Useful scripts. What if i have steam installed on another drive? Can i edit scripts in e.g. notepad to change paths to mine?

Sure!

1) Find this entry from row 30: ' Move shader cache folders to the 'NVIDIA_SHADERS_REMOVED_DATE' folder
2) Under that is listed all the locations script is seeking
3) copy line:  MoveFolderAndContents "C:\Program Files (x86)\Steam\steamapps\shadercache", cacheRemovedFolder & "\Steam_shadercache"  to the bottom of that list, so last 2 entries  would be:

MoveFolderAndContents "C:\Users\" & strUsername & "\AppData\LocalLow\NVIDIA\PerDriverVersion\GLCache", cacheRemovedFolder & "\NVIDIA_GLCache"
MoveFolderAndContents "C:\Program Files (x86)\Steam\steamapps\shadercache", cacheRemovedFolder & "\Steam_shadercache"

4) Change your destination to the bottom entry. If you have D:\Steam\steamapps\shadercache  and add "SteamDdrive_shadercache",  it would look like this
MoveFolderAndContents "D:\Steam\steamapps\shadercache", cacheRemovedFolder & "\SteamDdrive_shadercache"

Now it would look (last 2 rows/entries):
MoveFolderAndContents "C:\Users\" & strUsername & "\AppData\LocalLow\NVIDIA\PerDriverVersion\GLCache", cacheRemovedFolder & "\NVIDIA_GLCache"
MoveFolderAndContents "D:\Steam\steamapps\shadercache", cacheRemovedFolder & "\SteamDdrive_shadercache"

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.