Jump to content

Sign in to follow this  
Poppet

Where to find my Shaders folder Prepar3D v2 & v3 & v4

Recommended Posts

 
A Guide to Locate your Shaders folder in Prepar3D v2 & v3 & v4 
 
Your Shaders folder is located at the path below 

Local Disk (C:) ► Users ► You ► AppData ► Local ► Lockheed Martin ► Prepar3D ►  Shaders

 

To locate this folder, Insure the box is Ticked for  Show hidden files, folders and drives in File Explorer Options

Your Shaders folder (Graphical code) is a Generated folder,  Meaning if you delete this folder it will Generate again when you Launch Prepar3D.

The next time you launch Prepar3D the Shaders can take anything from 10 seconds to 2 \ 3 minutes to Generate again

 

It is Recommended but not required to Delete your Shaders folder when..............
 
(1)  You update Prepar3D v3 \ v4 using the Update Component Installers (Client) 
 
(2)  You update your Graphics Driver 
 
(3)   You Install a new Graphics Card 
 
(4)  Make Graphic changes to your Sim and or you install 3rd Party Software (Add On)  
 
(5)  Updates to your Windows operating system 
 
Note:  Deleting your Shades folder will Not effect any of your settings or 3rd Party Software (Add On's) 
 
----------------------------------------------------------------------------------------------------------------------------------------------
 
 
Right Click and Delete your Shaders folder,  When you Launch Prepar3D your Shaders folder will Generate again  
 
33557204755_9a4593f573_o.png
 
 
 
 
=================================================================================
 
 
 
There is an alternative way to find your Shaders folder   
 
Copy the Tex below and Paste it into your Windows search bar 
%LOCALAPPDATA%\Lockheed Martin\Prepar3D
 
 
Click on the folder and this will bring you directly to the location of your Shaders folder. 
 
33557205125_6b6409b53e_o.png
 
 
 
 
 
 
 
 
  • Upvote 4

Elaine Dixon 

AVSIM Prepar3D Guide     Prepar3D® Wiki       AVSIM CTD Guide     How to post a Screenshot 

 

 

Share this post


Link to post

Hello Elaine,

 

Thank you so much for the tip.

Pretty newbie here with P3D after years of MSFS. May I ask you to quote/link some source for the recommendation above (delete shaders content)?

Cannot find any LM "official" info about the topic in http://www.prepar3d.com/SDKv3/LearningCenter/LearningCenter.php

 

Cheers,

  • Upvote 1

Massimo Burti

 

Boeing777_Banner_Pilot.jpg   24.jpg

 

i7 4790K 4.00GHz ¦ Asus Z97-Deluxe ¦ Kingston HyperX Savage DDR3-2133 16GB ¦ Asus GTX 1080-8G Founders Edition ¦ ASUS ROG Swift PG278Q Gsync ¦ Win10 Pro on Samsung 850 Evo, 500GB ¦ P3D on Samsung 850 Evo, 1TB¦ CH Eclipse Yoke ¦ Corsair K70 RGB Cherry MX Red

Share this post


Link to post

Hello Elaine,

 

Thank you so much for the tip.

Pretty newbie here with P3D after years of MSFS. May I ask you to quote/link some source for the recommendation above (delete shaders content)?

Cannot find any LM "official" info about the topic in http://www.prepar3d.com/SDKv3/LearningCenter/LearningCenter.php

 

Cheers,

Shaders are part of Microsoft Direct 3D, in the case of P3D that is D3D11.

 

The Shaders folder, or any files within it, are created by the sim when it first runs, or when it runs and it finds any are not present.

 

So happily delete the Shaders folder, or any files within, especially after applying updates.

 

The sim uses internal programming code that makes those files. If any of those programs are changed, the shader associated with the code must be deleted, or the code won't be able to make the new shader.

 

A shader is a graphics program that programmatically paints the objects in the sim with the GPU. There are many shaders, for all the different types of drawing methods the graphics card uses to construct the scene.

 

WIth File Explorer, follow Elaine's instructions to find:

 

C:\Users\[you]\AppData\Local\Lockheed Martin\Prepar3D v2 (or v3)

 

This usually lists two folders:

 

Effects

Shaders

 

Select the Shaders folder and delete it, or Move it to a safe location.

 

Now run the sim, and the folder and files should be reconstructed before the sim gets underway.

  • Upvote 2

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

And for official confirmation - just read many of the threads in the LM forum where the Dev's instructions are to delete the shaders folder.

 

It is a common practice, especially after any driver change or graphic setting change.

 

 

Vic

  • Upvote 1

 

P3D#1 - 7700K 5.0g ROG X270F 3600 15-15-15 - EVGA RTX 2080ti 1000W PSU 1- 850G EVO SSD, 2-256G OCZ SSD, 1TB,HAF942-H100 Water W1064Pro
40" 4K Monitor 3840x2160 - AS16, ASCA, GEP3D, UTX, Toposim, ORBX Regions, TrackIR
P3D#2 - 3770K 4.7g Asus Z77 1600 7-8-7 GTX1080ti DH14 850W 2-1TB WD HDD,1tb VRap, Armor+ W10 Pro 2 - HannsG 28" Monitors
 

Share this post


Link to post

Thank you guys for the information.

 

I realized I've become too much conservative after my P3D migration  :wink:

 

Indeed, invaluable forum.

  • Upvote 1

Massimo Burti

 

Boeing777_Banner_Pilot.jpg   24.jpg

 

i7 4790K 4.00GHz ¦ Asus Z97-Deluxe ¦ Kingston HyperX Savage DDR3-2133 16GB ¦ Asus GTX 1080-8G Founders Edition ¦ ASUS ROG Swift PG278Q Gsync ¦ Win10 Pro on Samsung 850 Evo, 500GB ¦ P3D on Samsung 850 Evo, 1TB¦ CH Eclipse Yoke ¦ Corsair K70 RGB Cherry MX Red

Share this post


Link to post

Could not deleting the contents of the shared folder possibly be the cause of my sudden, but completely random, ntdll.dll CTD's?

  • Upvote 1

Matt Bernard
20+ Years Commercial/GA A&P/PLST

Share this post


Link to post

Could not deleting the contents of the shared folder possibly be the cause of my sudden, but completely random, ntdll.dll CTD's?

Wouldn't have thought so. Sudden? One way you can get these exceptions if you don't have the correct version of simconnect installed for the addon, or the simconnect environment is corrupt.

  • Upvote 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

Wouldn't have thought so. Sudden? One way you can get these exceptions if you don't have the correct version of simconnect installed for the addon, or the simconnect environment is corrupt.

The only thing that changed on my system when these errors started was a Nvidia driver update, and installing the latest version of the Flysimware Lear 35A. This included manually adding an XMLTools dll for our payload manager feature.

 

Ever since then I will get random ntdll.dll CTD's. Anywhere from 10 min after starting P3D, or of course right at the end of a 4.5 hour flight. Happens with any plane I try. I am dumbfounded by these errors.

  • Upvote 1

Matt Bernard
20+ Years Commercial/GA A&P/PLST

Share this post


Link to post

If any of those addons uses an FSX Simconnect component and you've not installed the three legacy simconnect .msi's, or if any of those addons write to a file in the P3D program files folder or subfolders, and there are no Write permissions for the Users group on that folder, then you might get ntdll.dll exceptions.

  • Upvote 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

Good post. I understood you should let P3D rebuild the shader folder after a hardware or driver change. I never knew I should also remove the shader folder after installing new addons or a change in the graphics settings. Is this really necessary? If so, it would be nice if the P3D GUI would delete the shader files for you when you changed graphical settings that require this, ofcourse followed by a notification that a restart of the program is necessary.

  • Upvote 1

Cheers, Bert

Intel i7-4790K, 8 GB RAM, MSI GTX 970, Windows 10 Home 64 bit, Prepar3D 4.5

Share this post


Link to post

If any of those addons uses an FSX Simconnect component and you've not installed the three legacy simconnect .msi's, or if any of those addons write to a file in the P3D program files folder or subfolders, and there are no Write permissions for the Users group on that folder, then you might get ntdll.dll exceptions.

My simconnects are all installed, and the Lear doesn't change anything. All the payload manager does is allow you to select from 3 different fuel loads, and change the amount/weight of passengers/cargo.

 

I reckon I'll try the shader folder clear and try again.

  • Upvote 1

Matt Bernard
20+ Years Commercial/GA A&P/PLST

Share this post


Link to post

It's possible you could have trouble with them, but if there's a driver update that requires a Shader rebuild, you'll need an update from LM to go with it.

  • Upvote 1

Steve Waite: Engineer at codelegend.com

Share this post


Link to post

Good post. I understood you should let P3D rebuild the shader folder after a hardware or driver change. I never knew I should also remove the shader folder after installing new addons or a change in the graphics settings. Is this really necessary? If so, it would be nice if the P3D GUI would delete the shader files for you when you changed graphical settings that require this, ofcourse followed by a notification that a restart of the program is necessary.

It's been there for years -

 

SHADER_CACHE_VERSION=1

 

Non-Default entry. This entry will not exist in your Prepar3D.cfg file by default and must be added to the file.

 

Performance Tuning Tip:

 

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

 

Vic

  • Upvote 1

 

P3D#1 - 7700K 5.0g ROG X270F 3600 15-15-15 - EVGA RTX 2080ti 1000W PSU 1- 850G EVO SSD, 2-256G OCZ SSD, 1TB,HAF942-H100 Water W1064Pro
40" 4K Monitor 3840x2160 - AS16, ASCA, GEP3D, UTX, Toposim, ORBX Regions, TrackIR
P3D#2 - 3770K 4.7g Asus Z77 1600 7-8-7 GTX1080ti DH14 850W 2-1TB WD HDD,1tb VRap, Armor+ W10 Pro 2 - HannsG 28" Monitors
 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    13%
    $3,490.00 of $25,000.00 Donate Now
×
×
  • Create New...