Transfert old nvidia driver shaders cache to new driver cache folder ?

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by Sh1nTa0h, Oct 21, 2022.

  1. Sh1nTa0h

    Sh1nTa0h Active Member

    Messages:
    58
    Likes Received:
    39
    GPU:
    Tuf 3080
    I want to update my nvidia driver but don't want driver to recompile shaders cache in current playing games...so is it possible to copy/paste the shaders cache folder ?
    I guess somebody already did try this trick before ? what happened ?
     
    Last edited: Oct 21, 2022
  2. GatitoMimosin

    GatitoMimosin Active Member

    Messages:
    69
    Likes Received:
    6
    GPU:
    msi gaming x 3060ti
    copy this folders
    C:\Users\(username)\AppData\Local\NVIDIA
    C:\Users\(username)\AppData\Roaming\NVIDIA
    unistall driver with DDU
    install new driver
    reboot in safe mode and copy folders in same destiny
    that's how i do
     
    hiphi, Sh1nTa0h and Smough like this.
  3. Smough

    Smough Master Guru

    Messages:
    984
    Likes Received:
    303
    GPU:
    GTX 1660
    This is so useful, gonna try it next time I install drivers after using DDU.
     
  4. Sh1nTa0h

    Sh1nTa0h Active Member

    Messages:
    58
    Likes Received:
    39
    GPU:
    Tuf 3080
    OMG! so it actually works ! OMG
    Thanks
     

  5. CPC_RedDawn

    CPC_RedDawn Ancient Guru

    Messages:
    10,449
    Likes Received:
    3,128
    GPU:
    PNY RTX4090
    Couldn't Wagnard include a shader backup option or an option to keep these files/folders instead of deleting them?
     
    Cave Waverider likes this.
  6. Smough

    Smough Master Guru

    Messages:
    984
    Likes Received:
    303
    GPU:
    GTX 1660
    Does it? You tested it and can confirm?
     
  7. Dan Longman

    Dan Longman Master Guru

    Messages:
    225
    Likes Received:
    157
    GPU:
    4080 FE
    I could foresee issues with copying shader cache over as the reason they get recompiled after a driver update is optimizations made in drivers (good example is newest release with dx12 improvements) so it could cause issues in those situations, I am not knowledgeable enough wrt shader compliations to know if this is an actual issue, just educated guesses from having been a professional programmer for a couple decades, maybe the driver will see if the shaders need to be recompiled due to changes and invalidate the existing ones if needed, not sure.

    But honestly for stability sake I wouldn't do this, sucks to have to rebuild shaders and getting stutters after a driver update but it doesn't take that long till the cache is rebuilt.
     
    Shadowdane and Smough like this.
  8. dr_rus

    dr_rus Ancient Guru

    Messages:
    3,930
    Likes Received:
    1,044
    GPU:
    RTX 4090
    Shader cache is purged on driver updates for a reason which is the newer driver may not actually be compatible with shaders compiled with a previous driver version.
    In other words YMMV when using this trick.
     
    Shadowdane and mbk1969 like this.
  9. Sh1nTa0h

    Sh1nTa0h Active Member

    Messages:
    58
    Likes Received:
    39
    GPU:
    Tuf 3080
    Didn't install new driver yet, i was guessing that if it was working for GatitoMimosin...then it should work

    I was thinking that too at first
     
    Last edited: Oct 22, 2022
  10. Astyanax

    Astyanax Ancient Guru

    Messages:
    17,037
    Likes Received:
    7,378
    GPU:
    GTX 1080ti
    the shaders also include both OS version and driver version matching, so there is no way to use old shaders anyway.

    the claim above that this has worked, is absurd and false.
     

  11. janos666

    janos666 Ancient Guru

    Messages:
    1,653
    Likes Received:
    407
    GPU:
    MSI RTX3080 10Gb
    Won't all the transferred entries be invalidated one-by-one as the game runs with the new driver? I am not sure how detailed the cache's indexing/versioning/etc.
     

Share This Page