Skip to content

maxrenke/gaming-optimization

Repository files navigation

Windows Gaming Optimization Scripts

A collection of Windows batch scripts designed to temporarily optimize your system for better gaming performance by managing services, processes, and system settings.

๐ŸŽฎ Overview

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.

๐Ÿ“‚ Repository Contents

Scripts

  • gaming-optimization-enhanced.bat - Enhanced version with improved logging, error handling, and safety features
  • gaming-optimization-original.bat - Original community script (backup/reference)

Features Comparison

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

๐Ÿš€ What the Enhanced Script Does

Performance Optimizations

  • 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

System Management

  • 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

System Cleanup

  • 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

โš ๏ธ Safety Features (Enhanced Version)

  • 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

๐Ÿ–ฅ๏ธ System Requirements

  • OS: Windows 10 (build 10240+) or Windows 11
  • Privileges: Administrator rights required
  • PowerShell: Version 3.0 or higher

๐Ÿ“‹ Usage Instructions

Quick Start

  1. Download the gaming-optimization-enhanced.bat script
  2. Right-click and select "Run as administrator"
  3. Choose Option 1 to optimize for gaming
  4. Game with improved performance
  5. Choose Option 2 to revert when done gaming

Menu Options

  • Option 1: Optimize for Gaming - Applies all performance tweaks
  • Option 2: Revert to Default - Restores all original settings
  • Option 3: Exit - Close the script

Additional Features

  • 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

๐Ÿ”ง Technical Details

Services Managed

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)

Processes Terminated

  • Windows Store apps, Photos app, Cortana, Search UI
  • Shell experience components, Game Bar writer
  • Audio driver interfaces, OneDrive sync
  • Calculator, Help pane, Speech runtime

Registry Modifications

  • Game Mode enablement
  • GPU priority settings
  • Visual effects optimization
  • Network stack optimization
  • Graphics driver tweaks

๐Ÿ“Š Performance Impact

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

๐Ÿ›ก๏ธ Safety & Reversibility

What's Safe

  • All changes are temporary and reversible
  • No permanent system modifications
  • No critical system files altered
  • Complete service state backup and restore

What to Watch

  • Some Windows features may be temporarily unavailable (Windows Search, etc.)
  • Background app notifications may be delayed
  • Some system sounds/animations will be disabled

How to Revert

  1. Run the script again as administrator
  2. Choose "Option 2: Revert to default"
  3. All original settings will be restored automatically

๐Ÿ“ Logging

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

๐Ÿ› Troubleshooting

Common Issues

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.exe and press Enter

๐Ÿค Contributing

This project welcomes contributions! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with proper testing
  4. Update documentation as needed
  5. Submit a pull request

Development Guidelines

  • Maintain backward compatibility
  • Add comprehensive error handling
  • Include logging for new features
  • Test on both Windows 10 and 11
  • Document all changes

๐Ÿ“„ License

This project is released under the MIT License. See LICENSE file for details.

โš–๏ธ Disclaimer

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.

๐Ÿ”— Related Projects

๐Ÿ’ก Tips for Maximum Performance

  1. Close background apps before running the script
  2. Update graphics drivers regularly
  3. Set games to High Performance in Windows Graphics Settings
  4. Use fullscreen mode instead of borderless windowed when possible
  5. Consider overclocking (with proper cooling and knowledge)
  6. Regular system maintenance (defrag, disk cleanup, etc.)

Happy Gaming! ๐ŸŽฎ

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages