Flightsim.toFlightsim.to
    Cache cleanup for MSFS 2020 and 2024 (NVIDIA and AMD systems, Steam and Store versions) - Image 1

    Description

    CURRENT VERSION: 1.5

    USAGE (Nvidia):

    1. Open the Nvidia control panel and navigate to "Manage 3D Settings"
    2. Scroll down till you find "Shader Cache Size"
    3. It will most probably be set to "Driver Default". You need to change it to "Disabled"
    4. Restart your PC and run the script, now all your cache files will be deleted.
    5. Go back to Nvidia control panel and set "Shader Cache Size" to the previous setting.

    *You don't need to restart your PC after re-enabling the shader cache.*

    The process should be about the same for AMD, please refer to a youtube tutorial on how to disable the shader cache for AMD

    NOTE: 1. Please always run the file as an administrator

                2. Disable the shader cache inside the NVIDIA control panel by switching the setting to "disabled", remember to turn it on again.

                3. Clearing your prefetch folder is NOT recommended by windows since the prefetch folder help applications launch faster, but clearing it every 2 months shouldn't hurt.

     

    This will clear the following directories:

    1. Temp files

    2. C:\Windows\prefetch\  

    3. NVIDIA shader cache directories

    4. AMD shader cache directories

    5. Microsoft flight simulator 2020 and 2024 cache directories

    6. Steam cache directories

     

     

    Thanks for the suggestions and feedback everyone!

    Comments(36)

    Log in to join the discussion

    Log In

    3 months ago

    I would like to announce that I have stopped working on this script as there are many newer, more advanced applications shared by other flightsim.to members.

    I especially liked the one uploaded by craigybabyj. I encourage everyone to try it out and support his project, here's the link to it: https://flightsim.to/file/103968/mfs-cleaner-fixer

    Thanks everyone!

    5 months ago

    How does your script handle MSFS being installed in custom directory? D:\Games\MSFS2024?

    5 months ago

    The script doesn't need to know where your MSFS install folder is. All the cache locations MSFS uses (like SceneryIndexes, DCE, shader caches) are stored in AppData and the Windows user directories, not in the game install path.

    So even if your MSFS is installed on D:\, the script still clears everything because those cache folders never change location.

    7 months ago

    Could you please explain how to proceed with the following according to your instructions regarding: "2. Disable the shader cache inside the NVIDIA control panel by switching the setting to "disabled", Remember to turn it on again." Should this be done before the cleanup (as I think) and then re-enabled? FeGo has asked the question before, but I don't understand how to proceed?

    7 months ago

    That's correct, this is how you're supposed to go about it:

    1. Open the Nvidia control panel and navigate to "Manage 3D Settings"
    2. Scroll down till you find "Shader Cache Size"
    3. It will most probably be set to "Driver Default". You need to change it to "Disabled"
    4. Restart your PC and run the script, now all your cache files will be deleted.
    5. Go back to Nvidia control panel and set "Shader Cache Size" to the previous setting.

    *You don't need to restart your PC after re-enabling the shader cache.*

    I will be putting these steps into the description of this file for ease of use, thanks for taking the time to ask me this.

    I suppose the process of disabling the shader cache is similar for both AMD and NVIDIA systems. However, I can't tell you how to do it for AMD since I'm not familiar.

    7 months ago

    Thanks for a concise explanation!

    12 months ago

    Handy tool. Thanks.
    -Isn't it necessary to disable the NVidia shadercache in the control panel first?
    -It would be even better if the 2020 and/or 2024 cache could also be cleared at the same time.

    12 months ago

    1. Thanks for mentioning that, I will update the description, I'm surprised I didn't think of doing it sooner.
    2. I have thought about it , clearing both at the same time would be very convenient, I will look into the directories of 2024 as well, thanks for the suggestion.

    11 months ago

    Thanks for the feedback. I have created a script myself which does the turning off of the shadercache, restarting, cleaning up the shadercache and turning it back on completely automatically.

    11 months ago

    That's very nice, I'll take a look at yours today and let you know. May be better than mine 😁

    Edit 1: I just looked at your profile and it wasn't there. If you plan on releasing it soon, I'll be happy to check it out 🙂‍↕️

    Edit 2: Wow your tool looks and performs really nice, really good job on that.
    I might consider switching to yours since I'm not actively making or updating anything now lol.

    12 months ago

    Is this something that would help with long hauls? I've noticed that the flight starts to run poorly at the end of long hauls and this might be something that helps with this.

    12 months ago

    Sure, this may have a noticeable difference for you if long hauls are your thing. Your cache tends to pile up throughout the duration of the flight. Do give this a go and let me know if you like it

    about 1 year ago

    Thank you so much for sharing.

    about 1 year ago

    Thank you as well 🙂‍↕️

    about 1 year ago

    Thank you very much for your update!

    about 1 year ago

    You're very welcome 🫡

    about 1 year ago

    Hello everyone, I highly appreciate your kindness and positive feedback on this script I made for MSFS 2020.

    Your requests for a similar one for MSFS 2024 has been acknowledged, the reason I haven't put one out yet is because I'm not familiar enough with how MSFS 2024 cache works and where it's stored and also that it's going to be a busy few months for me since I have to focus on my career and education in the aviation industry.

    With all that said, I look forward to learning more and creating more stuff in the furture! Thanks again for your support and feedback so far.

    about 1 year ago

    The best utility by far, well done for creating this you have made flying so great again on MSFS2020 especially for VR flying. No having to look for all those files manually anymore.

    about 1 year ago

    Hey thanks, It's always nice to hear appreciation 😌
    MSFS 2020MSFS 2024

    Cache cleanup for MSFS 2020 and 2024 (NVIDIA and AMD systems, Steam and Store versions)

    This add-on provides a tool for clearing various cache and temporary files in Microsoft Flight Simulator 2020. It facilitates the cleaning of prefetch, DXcache (for NVIDIA users), and other temporary files to help optimize performance. Users are required to extract a ZIP folder and run a batch file with administrator privileges to execute the cleanup process. Following the provided steps ensures efficient maintenance of simulator performance.

    Downloads3K
    Version1.5
    File Size1.56 KB
    Published1 year ago
    Updated6 months ago

    User Reviews

    5.0

    2 reviews

    5
    100%
    4
    0%
    3
    0%
    2
    0%
    1
    0%

    More Information

    Simulator
    MSFS2020/24
    Sub-CategoryOthers

    Version History

    Major Update: 1. More directories have been added. 2. This script now supports MSFS 2024. 3.The .bat file has been cleaned up for convenience and ease of modification in the future.

    Related

    FlyByWire A32NX - Vistara VT-TNP [Operated By Air India]

    FlyByWire A32NX - Vistara VT-TNP [Operated By Air India]

    This add-on features a handcrafted 8k livery for the A32NX aircraft, representing Vistara Airlines VT-TNP, currently operated by Air India following a merge. The package includes installation instructions for easy integration into Microsoft Flight Simulator. Users should note some visual discrepancies may occur due to model limitations. Feedback and suggestions for improvements are encouraged.

    by Rayaan_288

    5.0
    Fenix A320 V2 - Air Asia Malaysia (9M-AJZ)

    Fenix A320 V2 - Air Asia Malaysia (9M-AJZ)

    This add-on provides an Air Asia Malaysia livery for the Fenix Simulations Airbus A320 V2, featuring two texture variants: 4K and 8K. To install, users simply need to unzip the downloaded folder and place it in the community folder of Microsoft Flight Simulator. The new livery will then become available in the simulator under the Fenix A320 CFM (SL) category. Feedback on the add-on is encouraged.

    by Rayaan_288

    0.0