@echo off setlocal EnableExtensions EnableDelayedExpansion title Performancify OC Assistant color 0F cls set "LOG=%~dp0Performancify_OC_Log.txt" set "GUID_ULTIMATE=e9a42b02-d5df-448d-aa00-03f14749eb61" set "BOOSTGUID=be337238-0d82-4146-a960-4f3749d470c7" set "PROCGUID=54533251-82be-4824-96c1-47b60b740d00" for /f %%T in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd_HHmmss"') do set "STAMP=%%T" echo. echo ================================================== echo Performancify OC Assistant echo ================================================== echo. echo Safe CPU / RAM / GPU overclock helper echo White UI mode enabled echo. net session >nul 2>&1 if not "%errorlevel%"=="0" ( echo [ERROR] Run this file as Administrator. echo. pause exit /b ) call :DETECT echo [+] Creating restore point... powershell -NoProfile -ExecutionPolicy Bypass -Command "try { Checkpoint-Computer -Description 'Performancify OC Assistant' -RestorePointType 'MODIFY_SETTINGS' } catch {}" >> "%LOG%" 2>&1 echo [+] Backing up performance registry keys... reg export "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" "%~dp0Performancify_OC_Graphics_Backup_%STAMP%.reg" /y >> "%LOG%" 2>&1 reg export "HKCU\Software\Microsoft\DirectX\UserGpuPreferences" "%~dp0Performancify_OC_GPU_Prefs_Backup_%STAMP%.reg" /y >> "%LOG%" 2>&1 timeout /t 2 >nul :MENU cls echo ================================================== echo Performancify OC Assistant echo ================================================== echo. echo CPU: %CPU_NAME% echo GPU: %GPU_NAME% echo RAM: %RAM_INFO% echo. echo [1] Apply Safe Performance Mode echo [2] CPU Mid Boost Profile echo [3] RAM XMP / EXPO Helper echo [4] GPU Mid OC Helper echo [5] Add Game EXE To High Performance GPU echo [6] Create OC Guide Text File echo [7] Restart Into BIOS / UEFI echo [8] Restore Balanced Power Plan echo [9] Exit echo. set /p choice="Choose an option: " if "%choice%"=="1" goto SAFE_MODE if "%choice%"=="2" goto CPU_BOOST if "%choice%"=="3" goto RAM_HELPER if "%choice%"=="4" goto GPU_HELPER if "%choice%"=="5" goto GAME_GPU if "%choice%"=="6" goto CREATE_GUIDE if "%choice%"=="7" goto UEFI if "%choice%"=="8" goto RESTORE if "%choice%"=="9" goto END goto MENU :DETECT for /f "delims=" %%A in ('powershell -NoProfile -Command "(Get-CimInstance Win32_Processor | Select-Object -First 1 -ExpandProperty Name).Trim()"') do set "CPU_NAME=%%A" for /f "delims=" %%A in ('powershell -NoProfile -Command "$g=Get-CimInstance Win32_VideoController | ForEach-Object { $_.Name }; $g -join ' / '"') do set "GPU_NAME=%%A" for /f "delims=" %%A in ('powershell -NoProfile -Command "$m=Get-CimInstance Win32_PhysicalMemory; $gb=[math]::Round(($m | Measure-Object Capacity -Sum).Sum/1GB); $spd=($m | Select-Object -ExpandProperty Speed -Unique) -join '/'; Write-Output ($gb.ToString() + 'GB @ ' + $spd + 'MHz')"') do set "RAM_INFO=%%A" set "GPU_VENDOR=UNKNOWN" echo %GPU_NAME% | findstr /i "NVIDIA GeForce RTX GTX" >nul && set "GPU_VENDOR=NVIDIA" echo %GPU_NAME% | findstr /i "AMD Radeon RX" >nul && set "GPU_VENDOR=AMD" echo %GPU_NAME% | findstr /i "Intel Arc Iris UHD" >nul && set "GPU_VENDOR=INTEL" exit /b :SAFE_MODE cls echo ================================================== echo Applying Safe Performance Mode echo ================================================== echo. echo [+] Enabling Ultimate Performance plan if available... for /f "tokens=4" %%G in ('powercfg -duplicatescheme %GUID_ULTIMATE% 2^>nul') do set "NEWPLAN=%%G" if defined NEWPLAN ( powercfg /setactive !NEWPLAN! >> "%LOG%" 2>&1 echo [OK] Ultimate Performance enabled. ) else ( powercfg /setactive SCHEME_MIN >> "%LOG%" 2>&1 echo [OK] High Performance enabled. ) echo [+] Disabling PCIe power saving... powercfg /setacvalueindex SCHEME_CURRENT SUB_PCIEXPRESS ASPM 0 >> "%LOG%" 2>&1 echo [+] Disabling USB selective suspend... powercfg /setacvalueindex SCHEME_CURRENT SUB_USB USBSELECTIVE 0 >> "%LOG%" 2>&1 echo [+] Applying CPU max performance limits... powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMIN 5 >> "%LOG%" 2>&1 powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMAX 100 >> "%LOG%" 2>&1 echo [+] Enabling Game Mode and disabling Game DVR... reg add "HKCU\Software\Microsoft\GameBar" /v "AllowAutoGameMode" /t REG_DWORD /d 1 /f >> "%LOG%" 2>&1 reg add "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d 1 /f >> "%LOG%" 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f >> "%LOG%" 2>&1 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d 0 /f >> "%LOG%" 2>&1 echo [+] Enabling Hardware Accelerated GPU Scheduling... reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v "HwSchMode" /t REG_DWORD /d 2 /f >> "%LOG%" 2>&1 echo. echo [OK] Safe performance mode applied. echo Restart your PC after finishing all tweaks. echo. pause goto MENU :CPU_BOOST cls echo ================================================== echo CPU Mid Boost Profile echo ================================================== echo. echo This is NOT a real CPU overclock. echo It safely lets Windows use stronger boost behavior. echo Real CPU OC / PBO must be done in BIOS. echo. echo [+] Unhiding CPU boost mode setting... powercfg -attributes %PROCGUID% %BOOSTGUID% -ATTRIB_HIDE >> "%LOG%" 2>&1 echo [+] Setting CPU boost mode to Aggressive... powercfg /setacvalueindex SCHEME_CURRENT %PROCGUID% %BOOSTGUID% 2 >> "%LOG%" 2>&1 echo [+] Setting CPU max performance to 100 percent... powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMAX 100 >> "%LOG%" 2>&1 echo [+] Keeping CPU minimum safe at 5 percent... powercfg /setacvalueindex SCHEME_CURRENT SUB_PROCESSOR PROCTHROTTLEMIN 5 >> "%LOG%" 2>&1 powercfg /setactive SCHEME_CURRENT >> "%LOG%" 2>&1 echo. echo [OK] CPU Mid Boost Profile applied. echo Watch temperatures while gaming. echo. pause goto MENU :RAM_HELPER cls echo ================================================== echo RAM XMP / EXPO Helper echo ================================================== echo. echo RAM overclock cannot be safely forced from a .bat file. echo You enable it in BIOS using XMP, DOCP, or EXPO. echo. echo Your detected RAM: echo %RAM_INFO% echo. echo Recommended basic RAM OC: echo - Enable XMP / EXPO Profile 1 echo - Do not manually raise voltage unless you know what you are doing echo - Save and boot into Windows echo - Test games for crashes echo. echo [1] Restart into BIOS / UEFI echo [2] Back echo. set /p ramchoice="Choose: " if "%ramchoice%"=="1" goto UEFI goto MENU :GPU_HELPER cls echo ================================================== echo GPU Mid OC Helper echo ================================================== echo. echo GPU detected: echo %GPU_NAME% echo Vendor: %GPU_VENDOR% echo. echo This script will apply Windows GPU performance settings. echo Actual GPU clock changes should be done in MSI Afterburner echo or AMD Adrenalin so you can test stability. echo. echo [+] Applying Windows GPU performance settings... reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v "HwSchMode" /t REG_DWORD /d 2 /f >> "%LOG%" 2>&1 reg add "HKCU\Software\Microsoft\GameBar" /v "AutoGameModeEnabled" /t REG_DWORD /d 1 /f >> "%LOG%" 2>&1 reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d 0 /f >> "%LOG%" 2>&1 echo. echo Basic mid GPU OC starting point: echo. echo Power Limit: +5 to +10 percent if available echo Core Clock: +50 MHz echo Memory Clock: +250 MHz echo Voltage: Do not touch echo Fan: Custom curve, keep GPU under 85C echo. echo If the game crashes, lower Core Clock first. echo If you see weird pixels/artifacts, lower Memory Clock. echo. echo [+] Searching for MSI Afterburner... set "AB1=%ProgramFiles(x86)%\MSI Afterburner\MSIAfterburner.exe" set "AB2=%ProgramFiles%\MSI Afterburner\MSIAfterburner.exe" if exist "%AB1%" ( echo [OK] Opening MSI Afterburner... start "" "%AB1%" ) else if exist "%AB2%" ( echo [OK] Opening MSI Afterburner... start "" "%AB2%" ) else ( echo [INFO] MSI Afterburner not found. echo Open your GPU software manually. ) echo. pause goto MENU :GAME_GPU cls echo ================================================== echo Add Game EXE To High Performance GPU echo ================================================== echo. echo Drag the game's .exe file into this window, then press Enter. echo. echo Examples: echo FortniteClient-Win64-Shipping.exe echo VALORANT-Win64-Shipping.exe echo r5apex.exe echo. set /p GAMEEXE="Game EXE path: " set "GAMEEXE=%GAMEEXE:"=%" if not exist "%GAMEEXE%" ( echo. echo [ERROR] File not found. echo. pause goto MENU ) reg add "HKCU\Software\Microsoft\DirectX\UserGpuPreferences" /v "%GAMEEXE%" /t REG_SZ /d "GpuPreference=2;" /f >> "%LOG%" 2>&1 echo. echo [OK] Game set to High Performance GPU: echo %GAMEEXE% echo. pause goto MENU :CREATE_GUIDE cls set "GUIDE=%~dp0Performancify_Mid_OC_Guide.txt" ( echo Performancify Mid OC Guide echo ========================== echo. echo CPU: echo - Use BIOS for real CPU overclock. echo - For AMD Ryzen, use PBO instead of manual OC. echo - For Intel, use motherboard auto-tuning only if cooling is good. echo - Keep CPU under 90C under heavy load. echo. echo RAM: echo - Enable XMP / EXPO / DOCP Profile 1 in BIOS. echo - Do not manually raise voltage for basic clients. echo - If crashes happen, disable XMP or lower RAM speed one step. echo. echo GPU: echo - Power Limit: +5 to +10 percent. echo - Core Clock: +50 MHz. echo - Memory Clock: +250 MHz. echo - Voltage: leave default. echo - Keep GPU under 85C. echo - If game crashes, lower core clock. echo - If artifacts appear, lower memory clock. echo. echo Safety: echo - Always create a restore point. echo - Always test after changes. echo - Never promise huge FPS gains. echo - For clients, get permission before any OC. ) > "%GUIDE%" echo. echo [OK] Guide created: echo %GUIDE% echo. pause goto MENU :UEFI cls echo ================================================== echo Restart Into BIOS / UEFI echo ================================================== echo. echo This will restart your PC into BIOS/UEFI. echo Use this for CPU PBO or RAM XMP/EXPO. echo. echo Press Y to restart, or N to cancel. echo. set /p confirm="Restart now? Y/N: " if /i "%confirm%"=="Y" ( shutdown /r /fw /t 5 exit /b ) goto MENU :RESTORE cls echo ================================================== echo Restore Balanced Power Plan echo ================================================== echo. echo [+] Switching back to Balanced power plan... powercfg /setactive SCHEME_BALANCED >> "%LOG%" 2>&1 echo [+] Resetting CPU boost to default if possible... powercfg /setacvalueindex SCHEME_CURRENT %PROCGUID% %BOOSTGUID% 2 >> "%LOG%" 2>&1 echo. echo [OK] Balanced plan restored. echo Restart recommended. echo. pause goto MENU :END cls echo ================================================== echo Performancify OC Assistant Finished echo ================================================== echo. echo Log saved here: echo %LOG% echo. echo Restart your PC after applying performance settings. echo. pause exit /b