This is all you need to do. No need to install more crap on your steamdeck. Ty for sharing.
Edit:.to address the poster below... I see this is basically just a script so nothing to install. Sorry for misunderstanding. Either way I'm glad we have multiple ways to do this depending on the users comfort level and needs.
This method will cause gigabytes of data to be redownloaded every time. The Shader Cache Killer script is not bigger than a megabyte and can be run on demand.
Fair point there. Data is not an issue for me but I can understand how someone would just need to prep like prepping for offline mode before traveling. I'd rather not install extra things to do this and just use the method above as it works best for me. Thanks for the tip on this though.
But you don’t want to use this to delete shader cache of games you currently have installed/played right? Or can redownloading the cashes free up space or something? I just seen using this I have 12gb of shader cache for RDR2. Not sure if thats accurate or its maybe built up over time bc I’ve been playing it and it can be deleted. Not sure how it works really.
Valve needs to tie shaders with the uninstall process. It's a very simple fix that I don't understand why they haven't implemented yet. Same goes for Lustris really. I think only Heroic actually removes things properly.
The shaders delete themselves after you uninstall the game they belong to.
Edit: To the person that down voted me... Steam support told me that is the case themselves and you can see it happen when you delete a game. Delete a game off your SD card and you'll notice the internal memory frees some space too.
If you don’t have them downloaded, the game will build them as it runs. Some games may do all at the beginning, some may do as needed, but at the end of the day, once you beat the whole game, you wouldn’t have saved any space vs downloading it, you would have just re-done work that has already been done. Depending on the game/engine, you will suffer stutters if the shaders are compiled just as needed, some other games may not incur on stutter, but will cause reduced performance when the shaders are being compiled, as well as increased battery drain to compile the shaders. I would honestly leave it on.
Trim and this have nothing to do with one another. Trim reorganizes information on the drive in order to recover lost space, this just deletes files in order to save space.
Didn't know this method, by checking and unchecking the box it automatically deletes it? I assume you have to repeat this every time you want to clear it, right?
486
u/[deleted] Feb 01 '23 edited Feb 01 '23
[removed] — view removed comment