Nvidis Shader Cache.. Still.. Again !

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by Slinkyminx, Nov 25, 2017.

  1. Slinkyminx

    Slinkyminx Member

    Messages:
    32
    Likes Received:
    4
    GPU:
    1080 Ti AMP Ex Core
    Hey,
    Apologies this is an old one, but I have googled around for a while now and figured as I cannot REALLY find anything ROCK SOLID on this, I would see if anybody here has any thoughts.

    Drivers and settings generally have to cater for people with all system types, often aimed at lower to mid range at default states, for obvious reasons (low-med end users are often less hardcore then enthusiasts) so I am wondering, for a 'higher' end system, would you disable of leave default (enabled) Nvidia shader cache.

    (No matter how much I read I am still kind of..... SCKETCHY on what this does ... exactly)

    I mean from what I can gather it's designed to function just fine on a mech HDD so surely on an SSD it would only be better and more useful? honestly I don't have a clue...

    CHEERS!
     
  2. dr_rus

    dr_rus Ancient Guru

    Messages:
    2,218
    Likes Received:
    88
    GPU:
    GTX 1080 GRP
    Leave it on unless it gives you any trouble in some game in which case you can turn it off for this game's profile specifically.

    It stores shaders compiled into NV's binary format so that NV's driver don't have to compile them each time you launch an application. Modern shaders are compiled several times at runtime - first from HLSL/GLSL into API representation for driver, then from this representation into binary code for h/w. Driver's shader cache takes care of the second step.
     
  3. Apparatus

    Apparatus Master Guru

    Messages:
    303
    Likes Received:
    10
    GPU:
    Aorus 1080 ti
    Give it read, and I think it will clear everything for you.
    I leave it on.
    I am aware to not delete it everytime I clear my temp and %temp% folders

    ##########
    Shader Cache: Shaders are programs written to implement customizeable visual effects in games, such as various lighting, shadow and surface effects. These shader programs are often compiled (prepared for execution) during loading screens, or in open-world games they may be compiled as you move to a new area or see new objects. The act of compiling shaders can increase loading times, and if the shaders are compiling during gameplay, this can increase CPU usage, reducing performance and also possibly resulting in stuttering. Worse still, compiled shaders are usually discarded after you exit a game, so the process is repeated the next time you run the game. The Shader Cache feature in the GeForce drivers is designed to create a storage location for compiled shaders on your drive so that the next time you run a game and it needs to use particular shaders, it can use the precompiled stored shaders rather than compiling them again. This should speed up loading times, improve performance and reduce the potential for stutter.

    The available options for this setting are On and Off. If set to On, the next time you run a game, the driver will begin storing any compiled shader files in the following location on your primary system drive: C:\Users\[username]\AppData\Local\Temp\NVIDIA Corporation\NV_Cache. It will store up to 256MB of precompiled shaders, and once that limit is reached, older shaders are automatically purged to make way for newer ones, so there is no need to manually clean out the Shader Cache folder. Indeed if you regularly use an automated cleaning utility like CCleaner, you should make sure it isn't set to clean out the Windows Temp folder where the Shader Cache resides - in CCleaner untick the 'Temporary Files' box under the System category. If you're running an SSD and are worried about the impact of Shader Cache writes on drive longevity, you can move the entire Windows Temp folder to another drive if you wish. Open the Windows Control Panel, launch the System Component, select Advanced System Settings, then click the Environment Variables button and Edit the paths for both the TEMP and TMP entries. This really isn't necessary, as contrary to popular belief SSDs actually have tremendously long lifespans and can take a huge amount of writes - see the Solid State Drives section under the Drive Optimization chapter of the TweakGuides Tweaking Companion for more details.

    I recommend that the Shader Cache be set to On under Global Settings. The Shader Cache folder should also be kept on your fastest drive for optimal performance, even if it's an SSD, as it is only 256MB in size at most and will have a negligible impact on drive longevity. If you wish to set the Shader Cache on or off on per-game basis, you can do so under the Program Settings tab.

    ##########
    source :
    http://www.tweakguides.com/NVFORCE_1.html
     

Share This Page