Skip to content

ShaderSweep 2.0.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 20:29
· 27 commits to main since this release

ShaderSweep, a small Windows app that replaces clicking through the script. The PowerShell script stays in NvidiaShaderCleanup/ for automation and is unchanged.

Added

  • A single window that scans first and shows every cache with its size and exact folders before anything is deleted.
  • AMD, Intel, Windows DirectX and Steam caches alongside NVIDIA, plus an opt-in row for driver installer leftovers in C:\AMD and C:\NVIDIA\DisplayDriver.
  • Driver awareness. It records each GPU's driver version at the last clean and tells you when it changes, with honest wording about when cleaning is actually worth it and a note about NVIDIA's Auto Shader Compilation.
  • Names the program holding any file it could not remove, using the Windows Restart Manager.
  • Notices when files from an earlier clean are still waiting for a restart, and never queues the same file twice.
  • Free disk space for the system drive, a plain explanation under every cache row, and a Copy report button.
  • Preview only mode that measures and deletes nothing.
  • Every user profile on the machine is covered, not just the current one, along with the system and service profiles.
  • Headless mode (--clean, --preview, --only, --installers, --no-restart-queue) with exit codes, for chaining after a driver install.
  • The result of each real clean is saved to last-run.txt, and the app shows how much it has freed in total.
  • An Open button beside each folder, which only opens folders the app itself manages.
  • A tip that NVIDIA caps its cache at 16 GB by default and where to change it.

Changed

  • It no longer stops any NVIDIA service or process. Testing showed stopping them made no difference to which files stayed locked, and the restart queue covers the rest, so the riskiest part of the script is gone.
  • Freed space is counted per file actually deleted.

Safety

  • The interface only sends a row name. The backend rebuilds every path and checks it against a fixed allow list, refusing drive roots, .. paths and junctions.
  • Links inside a cache are removed without being followed, covered by a test.

Project

  • Rust backend with 54 tests, including full scan and clean runs against a made up machine, formatted with rustfmt and clean under clippy with warnings denied.
  • CI builds and tests the app on every push, and a tagged release publishes the exe, a zip and a SHA-256 hash.