A Windows batch script designed to optimize your system for gaming by managing system resources and prioritizing your game processes.
This script automatically optimizes your Windows environment for gaming by:
- Setting your game process to high priority
- Clearing RAM cache
- Closing resource-intensive background applications
- Temporarily stopping non-essential Windows services
- Optimizing network settings for your game
When you exit your game, the script automatically restores your system to its original state.
- Windows operating system
- Administrator privileges
- Basic knowledge of editing batch files
- Download or clone the
script.batfile - Right-click the file and select "Edit" to customize it for your specific game
- Update the following variables:
set "GAME_PATH=path_of_your_exe_file" (e.g., C:\Games\MyGame\game.exe) set "GAME_EXE=name_of_your_exe" (e.g., game.exe)
- Right-click on the script and select "Run as administrator"
- The script will start your game with optimized settings
- Keep the script window open while gaming
- When you exit the game, the script will detect this and restore your system settings
- Start your game normally
- Right-click on the script and select "Run as administrator"
- When prompted, choose 'Y' to optimize the running instance
- Keep the script window open while gaming
- When you exit the game, the script will detect this and restore your system settings
- Process priority for your game
- System RAM cache
- Background processes (closes specified applications)
- Windows services (temporarily stops SysMain, Windows Update, DiagTrack, Windows Search)
- Network interface weighting/QoS
- One-Click Optimization: Automates multiple optimization techniques
- Automated Restoration: Automatically returns your system to normal when you finish gaming
- Configurable: Can be easily customized to your specific needs
- No Permanent Changes: Makes only temporary modifications to your system
- Process Monitoring: Actively monitors your game and restores settings when it closes
- No Additional Software: Uses only built-in Windows commands
- Requires Administrator Rights: Must be run with elevated privileges
- Potential Application Disruption: Forcibly closes specified background applications
- Service Disruption: Temporarily disables some Windows services
- Manual Configuration Required: Game path and executable must be manually specified
- Must Remain Open: The command window must stay open while gaming
- Limited Compatibility: Designed for Windows systems only
- May Conflict with Other Optimization Tools: Could interfere with similar software
The script will forcibly close the following applications in this script:
- OneDrive
- Google Drive
- Chrome
- Microsoft Edge
- Firefox
You can customize this list by editing the script.
The script temporarily stops these Windows services:
- SysMain (Superfetch)
- Windows Update
- DiagTrack (Connected User Experiences and Telemetry)
- WSearch (Windows Search)
You can customize the script by:
- Adding or removing background processes to close
- Modifying which services are stopped
- Changing the process priority (256 = HIGH)
- "Game executable not found": Verify the GAME_PATH variable is correctly set
- "This script requires administrator privileges": Right-click and select "Run as administrator"
- "Could not find the game process": Ensure the GAME_EXE variable matches exactly with what appears in Task Manager
- Feel free to fork this repository to make any changes
This script modifies system settings and forcibly terminates processes. Use at your own risk. The author is not responsible for any potential data loss or system instability that may occur.