Is there any way to increase the size of Nvidia Cache?

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by PapaJohn, Mar 19, 2020.

  1. aufkrawall2

    aufkrawall2 Ancient Guru

    Messages:
    4,361
    Likes Received:
    1,821
    GPU:
    7800 XT Hellhound
    I wouldn't want that one either.
     
  2. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,541
    Likes Received:
    13,561
    GPU:
    GF RTX 4070
    We are talking about "garbage collection" - when compiled shaders become "garbage" (of older version or corrupted) they are purged.
     
    BlindBison likes this.
  3. aufkrawall2

    aufkrawall2 Ancient Guru

    Messages:
    4,361
    Likes Received:
    1,821
    GPU:
    7800 XT Hellhound
    Well, good point. If a shader binary is invalidated by hashes, it doesn't make sense to keep it. Though I suppose that doesn't happen very often and it really shouldn't be "overzealous" just to save a few MB of storage space.
     
  4. PhazDelta

    PhazDelta Master Guru

    Messages:
    897
    Likes Received:
    978
    GPU:
    RX6900XT Strix LC
    what the best driver to avoid this shader problem ?
     

  5. EdKiefer

    EdKiefer Ancient Guru

    Messages:
    3,128
    Likes Received:
    394
    GPU:
    ASUS TUF 3060ti
    Newest one.
     
  6. Astyanax

    Astyanax Ancient Guru

    Messages:
    17,011
    Likes Received:
    7,353
    GPU:
    GTX 1080ti
    except 2 users here are showing it is't :<
     
  7. EdKiefer

    EdKiefer Ancient Guru

    Messages:
    3,128
    Likes Received:
    394
    GPU:
    ASUS TUF 3060ti
    Just have to try and see.
     
  8. Sajittarius

    Sajittarius Master Guru

    Messages:
    490
    Likes Received:
    76
    GPU:
    Gigabyte RTX 4090
    just FYI, UWP Apps have their own NV_CACHE folder, with just the cache for that app (probably a file system thing, to make sure the UWP app can access the shader cache)

    Example:
    C:\Users\(username)\AppData\Local\Packages\Microsoft.WindowsCalculator_8wekyb3d8bbwe\AC\NVIDIA Corporation\NV_Cache

    (yes the win10 calculator gets its own shader cache... lol)
     
  9. ManuelG

    ManuelG NVIDIA Rep

    Messages:
    1,121
    Likes Received:
    620
    GPU:
    Geforce RTX 2080 FE
    This will change in a future driver version.
     
  10. TheMexican

    TheMexican Member

    Messages:
    25
    Likes Received:
    1
    GPU:
    MSI RTX 3070 8GB
    Is it possible for this to be the culprit for an issue I have with The Witcher 3, where sometimes the game microstutters after I load a save game in Novigrad - Hierarch Square? It doesn't always happen, more often than not it works correctly. And this microstutter is not visible on either framerate (meaning no FPS drops) or the frametime graph. I'm at my wits end. I thought I maybe had this fixed a while ago by disabling fullscreen optimizations, but after returning to the game after about 2 months (meaning 1-2 new drivers) I have encountered this a few times. Why would it sometimes occur and sometimes not? I don't even have to close the game, just reload the save a couple times from the menu and I'm bound to encounter the issue. I'm using RTSS to cap the framerate to 60. I'm at my wits' end.
     
    BlindBison likes this.

  11. aufkrawall2

    aufkrawall2 Ancient Guru

    Messages:
    4,361
    Likes Received:
    1,821
    GPU:
    7800 XT Hellhound
    If there's shader compile stutter, it should be visible in RTSS graph.
     
    BlindBison likes this.
  12. TheMexican

    TheMexican Member

    Messages:
    25
    Likes Received:
    1
    GPU:
    MSI RTX 3070 8GB
    Goddammit, I will never solve this. Nothing other than the game and RTSS is running in the background, everything is up-to-date, it is on an NVME SSD...
     
  13. aufkrawall2

    aufkrawall2 Ancient Guru

    Messages:
    4,361
    Likes Received:
    1,821
    GPU:
    7800 XT Hellhound
    Is this with gsync (compatible)? There can be stutter with it that is not visible in frame time graph due to bugs or whatever.
    Note that you can't get a perfectly fluid result with an fps limiter without VRR, as it doesn't sync to display (except RTSS scanline sync).
     
  14. TheMexican

    TheMexican Member

    Messages:
    25
    Likes Received:
    1
    GPU:
    MSI RTX 3070 8GB
    No, normal VSync through NVidia Profile Inspector (in-game is off).
     
  15. aufkrawall2

    aufkrawall2 Ancient Guru

    Messages:
    4,361
    Likes Received:
    1,821
    GPU:
    7800 XT Hellhound
    Looks like the issue is fixed in 471.11 (probably has been fixed earlier with previous drivers), DXCache + GLCache sum up to 1.19GB here. Is the information correct that each folder has a size limit of 1.5GB? If yes, that sounds like a reasonable limit to me. Please don't lower the limits. Not sure if true next gen games will actually use more different shaders, but if they do, it might be worth to bump these limits again a bit higher in a few years. But it seems for now, we're really good to go. :)
     

  16. EdKiefer

    EdKiefer Ancient Guru

    Messages:
    3,128
    Likes Received:
    394
    GPU:
    ASUS TUF 3060ti
    FWIW: I am on 465.89 and my C:\ProgramData\NVIDIA Corporation\NV_Cache folder is 1.67Gb.
     
  17. I've never heard about this issue before, but I'm glad they've fixed it. My NVCache folder size is at 2GB now.
     
  18. aufkrawall2

    aufkrawall2 Ancient Guru

    Messages:
    4,361
    Likes Received:
    1,821
    GPU:
    7800 XT Hellhound
    With 471.11, there is no C:\ProgramData\NVIDIA Corporation\NV_Cache anymore. It's now stored in user\AppData\Local\NVIDIA\DXCache, just like the GLCache folder (which is also for Vulkan). Makes sense, the path splitting was really weird.
     
  19. Astyanax

    Astyanax Ancient Guru

    Messages:
    17,011
    Likes Received:
    7,353
    GPU:
    GTX 1080ti
    the shader limit is also raised from 512MB per game.

    (also as mentioned, some applications (uwp for one) have their own cache folder in their package cache
     
    aufkrawall2 likes this.
  20. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,725
    Likes Received:
    1,854
    GPU:
    EVGA 1070Ti Black
    my shader folder is 480mb, then again been almost year since really gamed on pc and most games installed on pc have not been touch other then make sure they working
     

Share This Page