A highly optimized, dependency-free native engine for hot-patching Windows executables to force high-performance discrete GPU utilization.
For standard users, bypass the command line entirely:
- Click the green Download Latest Release button above.
- Under Assets, download
gpupatch-windows-amd64.exe. - Put it on your desktop and you're ready to go!
- ⚡ Blazing Fast: Native Rust implementation with no external dependencies.
- 💉 Safe Injection: Seamlessly injects
NvOptimusEnablementandAmdPowerXpressRequestHighPerformancesymbols. - 🔥 In-Place Patching: Intelligently toggles symbols on previously patched binaries.
- 🖥️ Built-in GUI: Includes a native graphical interface for easy management.
This tool is a from-scratch rewrite built to address edge-cases in the original nvpatch tool:
- ✅ Strict PE Compliance: Correctly implements Binary Ordinal Sorting and header alignment.
- ✅ Stand-Alone Binary: Entirely bypasses the heavy .NET runtime install requirement.
- ✅ Antivirus Safe: Cleanses corrupt digital signatures to avoid heuristic malware traps.
- ✅ Neophyte-Friendly: Adds graphical drag-and-drop support with persistent lock-screens.
If you have Rust installed, you can compile and install globally with a single command:
cargo install --git https://github.com/CynToolkit/gpupatch.gitgit clone https://github.com/CynToolkit/gpupatch.git
cd gpupatch
cargo build --releaseThe compiled binary will be available at ./target/release/gpupatch (or gpupatch.exe on Windows).
The application includes an interactive mode designed for ease of use:
- Double-click the downloaded
gpupatch.exebinary to launch the console window. - Drag and drop your target game or application executable directly onto the window.
- Hit Enter. That's it! 🎉
(Alternatively, you can simply drag and drop an executable file directly onto the
gpupatch.exeicon in Windows Explorer).
To force an executable to utilize the dedicated high-performance GPU:
gpupatch <input.exe> [<output.exe>]To undo the patch:
gpupatch <input.exe> --disableThe test suite includes unit test verification and deterministic parity simulation:
cargo test