A collection of Windows batch scripts designed to temporarily optimize your system for better gaming performance by managing services, processes, and system settings.
These scripts provide temporary system optimizations to improve gaming performance on Windows 10/11 systems. All changes are reversible and designed to be safe for regular use.
gaming-optimization-enhanced.bat- Enhanced version with improved logging, error handling, and safety featuresgaming-optimization-original.bat- Original community script (backup/reference)
| Feature | Original | Enhanced |
|---|---|---|
| Service Management | โ | โ |
| Process Termination | โ | โ |
| Priority Management | โ | โ |
| System Cleanup | โ | โ |
| Logging | โ | โ |
| Error Handling | Basic | Advanced |
| Safety Checks | Limited | Enhanced |
| Windows Defender | N/A | Preserved |
| Windows Updates | N/A | Preserved |
| Power Plan Changes | N/A | Disabled |
| Restart Required | N/A | None |
- CPU Performance: Optimizes processor throttling settings within current power plan
- Game Mode: Enables Windows Game Mode with high priority scheduling
- Visual Effects: Disables animations and visual effects for better performance
- GPU Settings: Enables hardware-accelerated GPU scheduling and optimizes graphics drivers
- Service Control: Temporarily stops non-essential Windows services
- Process Management: Terminates unnecessary background processes
- Priority Adjustment: Lowers priority for resource-heavy applications (browsers, Steam overlay)
- Network Optimization: Applies gaming-friendly TCP/IP settings
- Temp Files: Clears system and user temporary files
- Cache Cleanup: Removes browser caches and system caches
- Recycle Bin: Empties all drive recycle bins
- DNS Flush: Clears DNS cache for better connectivity
- No Windows Defender Changes: Security software remains active
- No Windows Update Disruption: System updates continue normally
- No Power Plan Modification: Respects user's current power plan
- No Restart Required: All changes take effect immediately
- Comprehensive Logging: All actions logged to
%appdata%\Gaming Optimization\optimization_log.txt - Service Backup: Complete backup and restore of all service states
- OS: Windows 10 (build 10240+) or Windows 11
- Privileges: Administrator rights required
- PowerShell: Version 3.0 or higher
- Download the
gaming-optimization-enhanced.batscript - Right-click and select "Run as administrator"
- Choose Option 1 to optimize for gaming
- Game with improved performance
- Choose Option 2 to revert when done gaming
- Option 1: Optimize for Gaming - Applies all performance tweaks
- Option 2: Revert to Default - Restores all original settings
- Option 3: Exit - Close the script
- Tool Menu: Quick access to system utilities (Task Manager, Resource Monitor, etc.)
- Extras Menu: Advanced options including DWM toggle (experimental)
- Test Menu: Developer menu for script navigation
The script temporarily disables these non-essential services:
- Secondary Logon, Connected Devices Platform, Offline Files
- Phone Services, Fax, Windows Installer, Internet Connection Sharing
- SMS Router, Print Spooler, SysMain (Superfetch), Push Notifications
- Windows Search, Touch Keyboard, Tablet Input, Diagnostic Tracking
- And many more... (full list in script)
- Windows Store apps, Photos app, Cortana, Search UI
- Shell experience components, Game Bar writer
- Audio driver interfaces, OneDrive sync
- Calculator, Help pane, Speech runtime
- Game Mode enablement
- GPU priority settings
- Visual effects optimization
- Network stack optimization
- Graphics driver tweaks
Users typically report:
- 5-15% FPS improvement in CPU-bound games
- Reduced input lag and smoother gameplay
- Lower system resource usage during gaming
- Faster game loading times due to reduced background activity
- All changes are temporary and reversible
- No permanent system modifications
- No critical system files altered
- Complete service state backup and restore
- Some Windows features may be temporarily unavailable (Windows Search, etc.)
- Background app notifications may be delayed
- Some system sounds/animations will be disabled
- Run the script again as administrator
- Choose "Option 2: Revert to default"
- All original settings will be restored automatically
The enhanced script creates detailed logs at:
%appdata%\Gaming Optimization\optimization_log.txt
Log includes:
- Timestamp for all operations
- Service state changes
- Process terminations
- Registry modifications
- Error conditions
Script won't run
- Ensure you're running as Administrator
- Check Windows version compatibility (Windows 10 build 10240+)
Services not restoring
- Check if backup file exists:
%appdata%\Gaming Optimization\service_backup.txt - Run the script again and select "Revert to default"
Performance not improved
- Close unnecessary applications before gaming
- Ensure your system meets game requirements
- Consider hardware limitations
Explorer not responding
- Press Ctrl+Shift+Esc to open Task Manager
- Go to File > Run new task
- Type
explorer.exeand press Enter
This project welcomes contributions! To contribute:
- Fork the repository
- Create a feature branch
- Make your changes with proper testing
- Update documentation as needed
- Submit a pull request
- Maintain backward compatibility
- Add comprehensive error handling
- Include logging for new features
- Test on both Windows 10 and 11
- Document all changes
This project is released under the MIT License. See LICENSE file for details.
Use at your own risk. While these scripts are designed to be safe and reversible, system modifications can potentially cause issues. Always:
- Create a system backup before first use
- Test on a non-critical system first
- Understand what the script does before running
- Have a way to restore your system if needed
The authors are not responsible for any system issues, data loss, or other problems that may result from using these scripts.
- Close background apps before running the script
- Update graphics drivers regularly
- Set games to High Performance in Windows Graphics Settings
- Use fullscreen mode instead of borderless windowed when possible
- Consider overclocking (with proper cooling and knowledge)
- Regular system maintenance (defrag, disk cleanup, etc.)
Happy Gaming! ๐ฎ