@echo off title [InstanceCheats.com] Fix Lagging ESP / Overlay Performance color 0C echo. echo ============================================================ echo InstanceCheats.com Fix - Lagging ESP / Overlay echo ============================================================ echo. net session >nul 2>&1 if %errorlevel% neq 0 ( echo [ERROR] This script requires Administrator privileges. pause exit /b 1 ) echo [1/8] Disabling Hardware Accelerated GPU Scheduling... reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" /v HwSchMode /t REG_DWORD /d 1 /f >nul 2>&1 echo [OK] echo [2/8] Disabling Game DVR / Xbox Game Bar recording... reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f >nul 2>&1 echo [OK] echo [3/8] Disabling Fullscreen Optimizations globally... reg add "HKCU\System\GameConfigStore" /v GameDVR_FSEBehaviorMode /t REG_DWORD /d 2 /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v GameDVR_HonorUserFSEBehaviorMode /t REG_DWORD /d 1 /f >nul 2>&1 reg add "HKCU\System\GameConfigStore" /v GameDVR_FSEBehavior /t REG_DWORD /d 2 /f >nul 2>&1 echo [OK] echo [4/8] Setting GPU priority to high for foreground apps... reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "GPU Priority" /t REG_DWORD /d 8 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Priority" /t REG_DWORD /d 6 /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" /v "Scheduling Category" /t REG_SZ /d "High" /f >nul 2>&1 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v "SystemResponsiveness" /t REG_DWORD /d 0 /f >nul 2>&1 echo [OK] echo [5/8] Disabling Nagle's algorithm (network latency)... for /f "tokens=1,2,*" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" /s /v DhcpIPAddress 2^>nul ^| findstr /i "HKEY_LOCAL"') do ( reg add "%%a" /v TcpAckFrequency /t REG_DWORD /d 1 /f >nul 2>&1 reg add "%%a" /v TCPNoDelay /t REG_DWORD /d 1 /f >nul 2>&1 ) echo [OK] echo [6/8] Killing overlay processes that cause lag... taskkill /F /IM Discord.exe >nul 2>&1 taskkill /F /IM GeForceExperience.exe >nul 2>&1 taskkill /F /IM NVIDIA Share.exe >nul 2>&1 taskkill /F /IM MSIAfterburner.exe >nul 2>&1 taskkill /F /IM RTSS.exe >nul 2>&1 taskkill /F /IM Medal.exe >nul 2>&1 taskkill /F /IM Overwolf.exe >nul 2>&1 taskkill /F /IM GameBar.exe >nul 2>&1 taskkill /F /IM GameBarPresenceWriter.exe >nul 2>&1 echo [OK] echo [7/8] Resetting GPU driver (soft refresh)... echo Press Ctrl+Shift+Win+B manually if the screen flickers. echo [INFO] echo [8/8] Setting power plan to High Performance... powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c >nul 2>&1 echo [OK] echo. echo ============================================================ echo [OK] ESP / Overlay performance fixes applied. echo. echo ALSO DO MANUALLY: echo - Set game to Borderless Windowed (NOT Fullscreen) echo - Disable V-Sync, G-Sync, Frame Generation in-game echo - Lower game graphics if needed echo - Update GPU drivers to latest version echo ============================================================ echo. pause