Flightsim.toFlightsim.to
    Corsten´s cache & shader removal tool (2024) - Image 1

    Description

    CORSTENS CACHE AND SHADER REMOVAL TOOLS (8.12.2024)

    This script tool has been around allmost for a year and nobody has been reported about suspicious code.

    VBS -scripts are made help of ChatGPT. Tool has been tested and works good with steam & store versions. Tested also with Nvidia and AMD graphics cards.

    Remember to reboot pc after disabling Nvidia shader cache and before using the tools.

     

    What is the point to clean your MSFS cache and GPU drivers shader cache?
    - MSFS cache and shader cache  makes MSFS run less smoother, when cache arent cleaned for a while.
    - Specialy Sim updates and world updates makes MSFS run less smoother because of incombatible cache files.
    - New GPU graphics drives could also make a diffrence in smoothness, so shader cache and MSFS cache is recodemmend to be cleaned with these tools after GPU driver update.


    Shader cache removal tool
    - This script will move shader cache folders to desktop and creates a folder and 'cache_locations.txt' file inside of that folder.
    - with that cache_locations.txt you can see, where the tool did move cache. Basicly it is a backup.
    - Make sure to disable shader cache in Nvidia Control Panel, otherwise, all the shaders won't be cleaned.
    - If there is problems with moving, try to restart pc and try again. Cache folders might be in use by some process.

    Remember to reboot pc after disabling Nvidia shader cache and before using the tools.

     

    MSFS cache removal tool
    - This script will move MSFS cache folders to desktop and creates a folder and 'cache_locations.txt' file inside of that folder.
    - with that cache_locations.txt you can see, where the tool did move cache. Basicly it is a backup.
    - If there is problems with moving, try to restart pc and try again. Cache MSFS folders might be in use by some process.


    Here are the locations, tools are looking for:

     

    Nvidia Shader Cache locations:
    - C:\Users\USERNAME\AppData\Local\D3DSCache
    - C:\Users\USERNAME\AppData\Local\NVIDIA\GLCache
    - C:\Users\USERNAME\AppData\Local\NVIDIA\PerDriverVersion\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
    C:\Program Files (x86)\Steam\steamapps\common\Limitless\cache
    C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator 2024\cache
    C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator 2024\SceneryIndexes
    C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator\ROLLINGCACHE.CCC
    C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator 2024\ROLLINGCACHE.CCC

    OPTIONAL SCRIPT (StreamedPackages included)
    C:\Users\USERNAME\AppData\Roaming\Microsoft Flight Simulator 2024\StreamedPackages

     


    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
    C:\Users\USERNAME\AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState\Cache
    C:\Users\USERNAME\AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalCache\SceneryIndexes
    C:\Users\USERNAME\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\ROLLINGCACHE.CCC

    OPTIONAL SCRIPT (StreamedPackages included)
    C:\Users\USERNAME\AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState\StreamedPackages

     

    Comments(73)

    Log in to join the discussion

    Log In

    4 months ago

    After clicking “Clear and backup” for items 1 through 6, it shows “Cleared!”, but in reality, no deletion or backup is performed. When I check the backup folder, “No cache was found to clear.” is also logged, and the data in the actual directory/path is still there.
    CorstenAuthor

    4 months ago

    well the tool didnt find the caches you are trying to delete. Are you in store of steam version ? What cached did you try to delete?

    4 months ago

    same here.
    I have store vesion. But nothing change. Even the rolling cache is not deleted.
    What is problem?

    5 months ago

    Just run this and completely broke MSFS 2024 install.
    Had to repair the installation via Xbox App.
    CorstenAuthor

    5 months ago

    It makes backups for this kind a cases. But thanks for feedback.

    5 months ago

    Unfortunately all backup folders were empty, except the WASM one.
    Don't get me wrong, just sharing my experience.

    9 months ago

    Did I just lose all control inputs, after running this tool?
    CorstenAuthor

    9 months ago

    Dont use SIMOBJECTS option, it contains airlplane configs. But you can find those in backups folder so you can put those back.

    9 months ago

    A bit extreme to add an option, without any warning, that deletes my control settings?

    I have no custom settings for the airplane I'm using, so don't understand how placing the aircraft files back will help, however, I will give it a try.

    9 months ago

    I believe your script f***ed up the licencing for my Just-flight products. Thats why I'm not able to get the controllers to functions.

    10 months ago

    not intructions at alll ..... how we know is cleared?? just press button go red and??
    CorstenAuthor

    10 months ago

    Does it go red after pushing "Clear and backup"?

    10 months ago

    Hi Corsten,

    I've noticed when I push button #3, Rolling Cache (20/24) the Windows terminal screen pops up but it never exits as it does when any of the other clearing buttons are pushed. When I exit out of it manually the box on the UI does turn green so I'm assuming the rolling cache got cleared, or did it?
    CorstenAuthor

    10 months ago

    yes the green light stays on. You can test the deletion progress and see is the rolling cache in the source anymore and check the backup-folder, is it there also.

    10 months ago

    Yes deletion did occur. Should the windows terminal screen exit after the deletion occurs? For all other deletion functions the windows terminal exits on it's own.

    10 months ago

    I´m sorry to say but my win 11 system rejected to start the UI. The error message is

    "Diese APP kann auf dem PC nicht ausgeführt werden .."

    Anything i have missed?

    Kind regards

    11 months ago

    Thanks for the update and UI improvements in v 3.1.

    I have now used the GPU Shader cache and Clear all MSFS caches options with my Nvidia GPU and MSFS 2020 setup and everything appears to have worked perfectly.

    Irritating for you and everyone else that Nvidia scatter their caches all over the place seemingly randomly. I hope for everyones sake they stop doing that.

    You might want to consider removing the old Just Scripts folder in the download as there are some errors in them and they are not updated to your latest UI versions.

    Thanks again for your work and this very useful tool.

    Have a great day.

    11 months ago

    I think I have found a solution.

    Although the MoveFolder function causes an access violation the CopyFolder and DeleteFolder functions do not seem to. So you might want to consider replacing all fso.MoveFolder functions with those two.
    fso.CopyFolder Source , Destination
    fso.DeleteFolder Source

    Something like this example:

    Sub MoveFile(sourceFile, destFile)
    On Error Resume Next
    If fso.FileExists(sourceFile) Then
    fso.CopyFolder sourceFile, destFile
    fso.DeleteFolder sourceFile
    End If
    On Error GoTo 0
    End Sub

    The file I was using for test purposes worked after replacing fso.MoveFolder and then running it directly from a CMD session.
    CorstenAuthor

    11 months ago

    Ok, thanks for idea. I think i will push update as soon as possible.

    11 months ago

    It has been many, many years since I have done any VBS scripting but I thought I would attempt to debug this file:

    MSFS_STORE_VERSION_CACHE_REMOVAL_TOOL_2024.vbs

    First problem is that there is a coding error in the MoveFolder function in two places, and after I fixed that the script fails with a permission denied error.

    The MoveFolder functions should begin as fso.MoveFolder "C:\Users\" not fso.MoveFolder "C:\Users:" as in the script.

    I do not know how to get around the access violation yet.

    So what I can deduce so far is that when using either the UI version, or running scripts directly there is an access violation when using the MoveFolder function.
    MSFS 2020MSFS 2024

    Corsten´s cache & shader removal tool (2024)

    A tool designed to clean MSFS and GPU shader cache, improving performance by removing outdated or incompatible cache files. Use with caution and follow instructions carefully to ensure proper functioning. Compatible with both Nvidia and AMD graphics cards.

    Downloads10K
    Version3.2
    File Size16.94 KB
    Published2 years ago
    Updated9 months ago

    User Reviews

    4.0

    4 reviews

    5
    75%
    4
    0%
    3
    0%
    2
    0%
    1
    25%

    More Information

    Simulator
    MSFS2020/24
    CategoryUtilities
    Sub-CategoryTweaks

    Version History

    Changelog 26.7.2025 - removed JustScripts folder, only UI version from this version up. - use this tool near root folder, otherwise path is too long to copy content to backups-folder - added option to clear WASM cache. WASM cache will rebuild after clearing it, 2-10min debends how much addond you have using WASM. It is recodemmend to clear WASM cache one in a while. For MSFS 2020 you have to manually delete all WASM files in * %APPDATA%\Microsoft Flight Simulator\Packages\AIRCRAFT * %LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalState\Packages\AIRCRAFT

    Related

    GAmod - offline version (World overhaul edition)

    GAmod - offline version (World overhaul edition)

    GAmod - Offline edition brings 100,000 worldwide flight plans with custom models, now compatible with AIG models and FSLTL injector. This add-on offers performance-light aircraft models with interior details and custom-made lights, while allowing for offline flying anytime, anywhere. Experience enhanced traffic density settings, military traffic at various airbases, and a complete overhaul of Finland, all included in this detailed world overhaul edition. Discover new flight possibilities and features, with support available through dedicated channels for assistance.

    by Corsten

    4.8
    Helsinki Metropolitan Landmarks

    Helsinki Metropolitan Landmarks

    Explore the Helsinki Metropolitan area with moving trains and added lights around landmarks and key locations with the Helsinki Metropolitan Landmarks version 4.0 add-on. This update includes a static trains library and can be enjoyed from both air and ground perspectives.Discover iconic structures in Helsinki, Espoo, and Vantaa created by a team of dedicated developers, enhancing your flight simulation experience with detailed 3D models and realistic cityscapes.

    by Corsten, Topi T., WildLynxPilot & bLindye

    4.3
    GAmod 2024

    GAmod 2024

    GAmod 2024 is an add-on for Microsoft Flight Simulator that integrates MSFS2020 native models to enhance general aviation traffic at airports around the world. Currently featuring models for various aircraft, including general aviation and military traffic, the add-on aims to provide a realistic offline traffic experience using custom .bgl traffic schedule files. While it supports multiple traffic quality settings, this version does not include special traffic like helicopters or blimps and future updates will incorporate models for the 2024 version once Asobo lifts the encryption.

    by Corsten

    4.5
    MilitaryMod 2024

    MilitaryMod 2024

    MilitaryMod 2024 is a comprehensive add-on designed for Microsoft Flight Simulator that enhances the military aviation experience by injecting military traffic globally. The mod features various military aircraft models, including the FA-18, F-16, and F-35, and includes static HMS Queen Elizabeth carriers at specific locations. It incorporates AI flight plans for both VFR and IFR missions, providing engaging military operations around airbases. To ensure compatibility, users must follow specific installation instructions and disable default traffic models within the simulator.

    by Corsten

    3.0