https://github.com/pythoninthegrass/force_recompile_shaders
Remove shader caches
https://github.com/pythoninthegrass/force_recompile_shaders
Last synced: 11 months ago
JSON representation
Remove shader caches
- Host: GitHub
- URL: https://github.com/pythoninthegrass/force_recompile_shaders
- Owner: pythoninthegrass
- License: unlicense
- Created: 2023-09-20T08:04:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T18:09:07.000Z (over 2 years ago)
- Last Synced: 2025-01-11T16:50:29.446Z (about 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# force_recompile_shaders
Removes all shader caches from Nvidia, AMD, and Intel Arc GPUs on Windows.
Used to troubleshoot Starfield in particular, but applies to other games generally.
**NOTE**
On Linux, only Starfield shaders will be removed.
## Setup
Requires [Python 3.11](https://www.python.org/downloads/).
## Usage
```bash
# run interactively (prompts before deleting individual files)
python force_recompile_shaders.py -i
# run unattended
python force_recompile_shaders.py
```
## Development
VSCode [launch.json](.vscode/launch.json) is included for debugging and passing arguments.
Uses standard library so no dependencies outside Python itself are required.
Currently only supports the interactive flag:
```json
"args": ["-i"]
```
## Futher Reading
[[Guide] How to force recompile shaders : Starfield](https://www.reddit.com/r/Starfield/comments/16703yo/guide_how_to_force_recompile_shaders/)
[MoscaDotTo/Winapp2: A database of extended cleaning routines for popular Windows PC based maintenance software.](https://github.com/MoscaDotTo/Winapp2/)