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.

Delete Shaders

Featured Replies

Is it common practice to delete the Shaders Folder for P3D after installing massive amount of Scenery?
 

Cheers!

Ron Hamilton

 

"95% is half the truth, but most of it is lies, but if you read half of what is written, you'll be okay." __ Honey Boo Boo's Mom

So i hear,   but i deleted my Shader Folder and my PD3 would not start again,  and had to run the Installer to fix it.  I probably deleted the wrong one though.  Actually now that i think about it i deleted the Shader Folder in my PD3 Folder and not in the one in Config file,   so there go,  i answered my own question. 

 

 

 

  • Moderator

Poppet - LOL! We don't have to hit you in the head WITH A 2X4 to get your attention!

 

Yes, the ShadersHLSL folder is NOT the one you want to delete.

 

C:\Users\<YOU>\AppData\Local\Lockheed Martin\Prepar3D v2\Shaders is the one you want.

 

Vic

 

RIG#1 - I9 14900K MSI Pro z790 RTX 5070Ti
40" 4K Monitor 3840x2160 

 

 


Yes, the ShadersHLSL folder is NOT the one you want to delete.

C:\Users\\AppData\Local\Lockheed Martin\Prepar3D v2\Shaders is the one you want.
Yes it took me 5 months to realize even though my PD3 was on a my "K" drive i also had a secret hidden folder of mystery on my C drive with all different kinds of wonderment and settings to play with and change to my own liking   :rolleyes:

 

 

 

Hi

 

I have just installed Orbx Australia and holgermesh, do I need to delete my shaders folder ?

 

Thanks in advance.

Ivan Smith

Probably not but it doesn't hurt. You really don't have to delete the shader cache unless you [re]install video drivers, add or replace any effects or clouds, etc. Look through the ShadersHLSL folder and you'll get an idea of the sorts of things that are involved; however, the cache that you want to clear out is in the AppData folder. The ShadersHLSL folder merely contains all of the instruction sets that the simulator uses in order to build the cache file. Absolutely no harm in clearing out the cache folder. In fact, I've built a batch file to do so:

 

del "C:\Users\XYZ123\AppData\Local\Lockheed Martin\Prepar3D v2\Shaders\*.*?"

 

where XYZ123 is your Windows logon username.

 

Create a shortcut for the batch file and run it whenever you want. You'll notice a short delay when you load the sim up because the sim is reloading shaders.

Greg Montey

 

"Because with great power, comes great responsitriligence..."

  • 3 weeks later...

Probably not but it doesn't hurt. You really don't have to delete the shader cache unless you [re]install video drivers, add or replace any effects or clouds, etc. Look through the ShadersHLSL folder and you'll get an idea of the sorts of things that are involved; however, the cache that you want to clear out is in the AppData folder. The ShadersHLSL folder merely contains all of the instruction sets that the simulator uses in order to build the cache file. Absolutely no harm in clearing out the cache folder. In fact, I've built a batch file to do so:

 

del "C:\Users\XYZ123\AppData\Local\Lockheed Martin\Prepar3D v2\Shaders\*.*?"

 

where XYZ123 is your Windows logon username.

 

Create a shortcut for the batch file and run it whenever you want. You'll notice a short delay when you load the sim up because the sim is reloading shaders.

Thank you

Ivan Smith

prefer to reduce Detail Settings and won t try to delete Folders i m not sure about. also, a lot of time is spent installing all sorts of extras and less in flying simming and Navigation i found.

  • Moderator

Or you could simply add an entry to the Prepar3D.CFG file to automatically rebuild the shaders for you...

 

...anytime a change is made that requires a recompile of the shaders, this number will be incremented.

[GRAPHICS]
SHADER_CACHE_VERSION=1

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

As I understand, the only time you have to delete the Shaders-folder is when you change/upgrade your Graphics card. 

 

 

Jack

the Swede in Spain

Jack J Jackson

Castalla, Alicante, Spain

 

Or you could simply add an entry to the Prepar3D.CFG file to automatically rebuild the shaders for you...

 

...anytime a change is made that requires a recompile of the shaders, this number will be incremented.

[GRAPHICS]
SHADER_CACHE_VERSION=1

 

Bill I think you have this back to front.

You have to manually change this number each time you want the shaders to be deleted.

With SHADER_CACHE_VERSION=1 in the cfg the shaders will not be deleted until you change it to some other number eg SHADER_CACHE_VERSION=2.

Nothing really automatic about it except it saves people having to search for the correct shader folder.

 

gb.

As I understand, the only time you have to delete the Shaders-folder is when you change/upgrade your Graphics card. 

 

 

Jack

the Swede in Spain

 

Jack not really correct.

LM recommend deleting the Shaders after any change in the p3d.cfg as well as graphic card or video driver changes.

That's one reason there is that SHADER_CACHE_VERSION=1 option there.

Deleting shaders will do no harm and is worth trying with any graphical problem.

 

gb.

YSSY. Win 10, [email protected], Corsair H115i Cooler, RTX 4070Ti, 32GB G.Skill Trident Z F4-3200, Samsung 960 EVO M.2 256GB, ASUS Maximus VIII Ranger, Corsair HX850i 850W, Thermaltake Core X31 Case, Samsung 4K 65" TV.

Jim Barrett

Licensed Airframe & Powerplant Mechanic, Avionics, Electrical & Air Data Systems Specialist. Qualified on: Falcon 900, CRJ-200, Dornier 328-100, Hawker 850XP and 1000, Lear 35, 45, 55 and 60, Gulfstream IV and 550, Embraer 135, Beech Premiere and 400A, MD-80.

 

 


Like Yoda talking he was.

 

:)

 

gb.

YSSY. Win 10, [email protected], Corsair H115i Cooler, RTX 4070Ti, 32GB G.Skill Trident Z F4-3200, Samsung 960 EVO M.2 256GB, ASUS Maximus VIII Ranger, Corsair HX850i 850W, Thermaltake Core X31 Case, Samsung 4K 65" TV.

The AVSIM CTD Guide, page 5, provides guidance on deleting the Shader folder including where they are located.  It also recommends periodically removing the facilities/scenery indexes too.  That's interesting about the shader_cache_version parameter in the fsx/p3d configs brought up by Bill and subsequently discussed by gb and Jim Barrett.  Always learning something new.

 

Best regards,

Jim Young | AVSIM Online! - Simming's Premier Resource!

Member, AVSIM Board of Directors - Serving AVSIM since 2001

Submit News to AVSIM
Important other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS)

I7 8086K  5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10 

 

  • Moderator

Bill I think you have this back to front.

You have to manually change this number each time you want the shaders to be deleted.

With SHADER_CACHE_VERSION=1 in the cfg the shaders will not be deleted until you change it to some other number eg SHADER_CACHE_VERSION=2.

Nothing really automatic about it except it saves people having to search for the correct shader folder.

The exact statement in the "Tuning Guide" is very ambiguous at best:

 

 

Using this rebuilds your shader cache by incrementing the number each time you make a change to the Prepar3D.cfg.

In truth, it could be interpreted either way... :Silly:

 

Like most languages, English is fully capable of being structured such that there is great precision and expression of thought, and thus any and all ambiguity is eliminated.

 

Obviously, whoever authored the above quote is no great master of the language... :LMAO:

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.