An open API service indexing awesome lists of open source software.

https://github.com/hl2guide/nvidia-shaders-cleaner

A PowerShell 7 script that removes ALL shader files (*.nvph) in the NVIDIA DXCache folder in Windows.
https://github.com/hl2guide/nvidia-shaders-cleaner

gpu nvidia nvidia-gpu powershell powershell-script powershell-scripts powershell7 windows-11 windows11

Last synced: 7 months ago
JSON representation

A PowerShell 7 script that removes ALL shader files (*.nvph) in the NVIDIA DXCache folder in Windows.

Awesome Lists containing this project

README

          

# NVidia-Shaders-Cleaner 🧹

A PowerShell 7 script that removes ALL shader files (*.nvph) in the NVIDIA DXCache folder in Windows.

Title: DXCache NVidia Shaders Cleaner Script for NVidia GPUs

Version: 1.0

Filename: clear_nvidia_shaders.ps1

## Preview

![Preview](https://raw.githubusercontent.com/hl2guide/NVidia-Shaders-Cleaner/refs/heads/main/images/preview.png)

## Important Notes

This script applies to a user of NVidia GPUs and does nothing at all
for AMD or Intel GPUs.

NVIDIA Shaders can become corrupted or invalid and need to be rebuilt
by a game or app.

__This script removes ALL shader files (*.nvph) in the NVIDIA DXCache folder:__

_$env:LOCALAPPDATA\NVIDIA\DXCache_

Before running this script check that all PC games and apps that use your
NVidia GPU (hardware acceleration) are closed off and not open and running.
This includes the NVidia App and related processes in the
taskbar (bottom right on Windows desktop).

Any PC games can then recreate the shaders (takes time) as needed
at game startup or otherwise.

## Requirements
The script MUST be `run as Administrator` in `PowerShell 7.5.2` or later to work
as intended.

## Usage

Read the above text and then CD into the correct directory and then to
run the script use:

`./clear_nvidia_shaders.ps1`