🛈 Announcement
Greetings! The Division forums are now archived and accessible in read-only mode, please go to the new platform to discuss the game
  1. #1

    Any option to move Shader Caches outside of Documents folder?

    So currently the Shader Caches are stored in
    Documents\My Games\Tom Clancy's The Division 2
    - ShaderByteCode
    - ShaderCache

    The bad side of this that OneDrive uploads any changes immediately and causes fps drops (cpu usage I guess).
    So any chance to move these folders to the game folder instead of Documents?

    Workaround is to close OneDrive before launching.

    I will try to make symlink for those folders pointed to somewhere else today and will return with the results.
    Share this post

  2. #2
    cant you exclude that folder from your back up?
    Share this post

  3. #3
    Sadly no, if I exclude a folder then it deletes that folder.
    So if a folder is inside Documents OneDrive synces it forcedly, non-synced folders can't be there. This is a OneDrive issue for years

    It seems that Symlinking the folders doesn't solve my problem, OneDrive still reaches the mentioned shader folders and uploading/deleting more than 5k files while playing...
    Share this post

  4. #4

    Following

    I have the same issue. But with Google Drive.

    If I let it sync, I think a different computer would generate different shaders. So I have to delete the cache every time I switch computers?

    Unfortunately drive doesn't let you exclude one folder, but you can say "only sync these folders" and select everything but it. When I do, however, it generates two folders in google drive when I start playing on other computers. And that's a lot more complication to exclude just one folder for one program that is written poorly.

    Why do game developers do this? I've seen this on several other games. I understand you want to put saved games in the documents folder, but why cache? That should be in the "appdata\local" folder. If you find your customers are having a hard time finding it, when they need to delete them to re-generate them, then put a shortcut in their documents to the appdata\local folder instead of the actual shader folders.

    Frankly even the other stuff should be in the "AppData\Roaming" folder, or the "Saved Games" folder.
    My Documents is for My Documents, stop putting your files in My Documents!
    Share this post

  5. #5
    Just create virtual folder with mklink /j
    Share this post

  6. #6
    U can try just setup OneDrive do not sync whole Documents folder, but some selected folders inside Documents?
    Share this post

  7. #7
    It's so funny that I have the exact same problem and exact same ideas with exact same "no- solutions"

    For those who wonder: My Documents is a 'library' it's a virtual collection of folders (or it can be just one folder) and you can relocate that thing to OneDrive and have many computers sync the same Library. This way I have the same "My Documents" folder on 4 of my devices and that includes my desktop as well.

    This all works well because My Documents should not be something that gets thousands of files of updates, it's just whatever I create and do. But UPlay decided to use My Games, a folder inside My Documents folder, which has nothing to do with my games (my games are installed on a separate hard drive) as shader cache and other stuff.

    Thousands and thousands of files keep getting synced, causing game crashes left and right. DX12 doesn't work because of this primarily (on a 64GB ram I8 /w 2080TI for crying out loud)

    There's no way to pick'n choose what to sync inside My Documents, because you globally want to sync the entire thing so that you don't have to deal with "oh I forgot this / that" situations and miss an important document. You really can't pick & n choose anyway.

    So the points is:

    WE NEED TO RELOCATE THE SHADER CACHE ELSEWHERE PLEASE! MAYBE A REGISTRY SETTING? SOMETHING. ANYTHING! THAT THING SHOULD NOT BE UNDER MY DOCUMENTS AND STAY INSIDE \PROGRAM FILES\UBISOFT BUNCH WHERE OTHER SHADER CACHES ARE!!!
    Share this post

  8. #8
    Why isn't the shader cache locacted in the folder you install Division 2 into? That makes no sense.
    Share this post

  9. #9
    Senn20's Avatar Junior Member
    Join Date
    Apr 2019
    Posts
    17
    The only solution here is don't use OneDrive. Yes, you can pause syncing for the duration of your gaming session, but you're still backing up thousands of files unnecessarily when you resume sync. You cannot exclude subfolders in OneDrive from syncing FROM your computer TO the cloud. You can only exclude subfolders in your online storage from being shown on your computer. The exact opposite of what we want here. You can only exclude filetypes from syncing in OneDrive if you are the admin of a business account.

    Google Drive on the other hand has an option to exclude filetypes in the consumer version:

    Click Three Dots button, then Preferences.
    Click Change next to Backing up all files and folders
    Under Ignore files with these extensions add .mcache and .mbytecode

    Unfortunately, even if you manually remove the synced files from your Google Drive via the web interface, Backup and Sync still wants to process and sync these files one by one. It will sit on "Processing (***** files)" for what seems like a decade but it eventually moves on to deleting the files.
    Share this post

  10. #10
    Originally Posted by Senn20 Go to original post
    The only solution here is don't use OneDrive. Yes, you can pause syncing for the duration of your gaming session, but you're still backing up thousands of files unnecessarily when you resume sync. You cannot exclude subfolders in OneDrive from syncing FROM your computer TO the cloud. You can only exclude subfolders in your online storage from being shown on your computer. The exact opposite of what we want here. You can only exclude filetypes from syncing in OneDrive if you are the admin of a business account.

    Google Drive on the other hand has an option to exclude filetypes in the consumer version:

    Click Three Dots button, then Preferences.
    Click Change next to Backing up all files and folders
    Under Ignore files with these extensions add .mcache and .mbytecode

    Unfortunately, even if you manually remove the synced files from your Google Drive via the web interface, Backup and Sync still wants to process and sync these files one by one. It will sit on "Processing (***** files)" for what seems like a decade but it eventually moves on to deleting the files.

    The problem still exists and just made me remove the game and uplay from my computer completely...
    Seems like no one at ubisoft pays any attention to this.
    Share this post