A PowerShell utility to manage Control Flow Guard (CFG) settings for games to fix stuttering and performance issues on Windows.
Control Flow Guard (CFG) is a Windows security feature that can sometimes cause stuttering and performance issues in certain games. This tool provides a simple interface to disable or enable CFG for specific games without manually editing registry settings.
- Interactive Menu - Easy-to-use interface to manage CFG settings
- Batch Operations - Enable or disable CFG for all games at once
- Real-time Status - See which games have CFG enabled or disabled
- Custom Game List - Add your own games to the list
- Safe Management - Handles Windows registry safely with proper error handling
- Windows 10/11
- PowerShell (comes pre-installed on Windows)
- Administrator privileges (required to modify system settings)
- Download or clone this repository
- Extract the files to a folder
- Add your game executables to
GameList.txt(one per line)
- Right-click
FixStutter.ps1and select Run with PowerShell- Or run from PowerShell:
.\FixStutter.ps1
- Or run from PowerShell:
- The script will automatically request Administrator privileges
- Use the interactive menu to:
- Toggle CFG for individual games (press the game's number)
- Disable CFG for all games (press
D) - Enable CFG for all games (press
A) - Refresh the status (press
R) - Exit (press
Q)
Edit GameList.txt and add the executable name of your game (one per line):
PioneerGame.exe # ARC Raiders
Discovery.exe # THE FINALS
Marvel-Win64-Shipping.exe # Marvel Rivals
YourGame.exe # Your Game Name
Note: Only include the executable name (e.g., game.exe), not the full path.
The default GameList.txt includes:
- ARC Raiders
- THE FINALS
- Firefighting Simulator: Ignite
- Marvel Rivals
- Ready or Not
- Genshin Impact
- Dead by Daylight
When CFG is disabled for a game:
- The script uses PowerShell's
Set-ProcessMitigationcmdlet to modify Windows security settings - CFG is disabled only for specific game executables, not system-wide
- Changes persist across reboots
When CFG is enabled (re-enabled):
- The script removes the registry entries that disable CFG
- The game returns to Windows default security settings
- Administrator privileges are required - The script modifies system-level security settings
- Backup recommended - Consider creating a system restore point before using
- Security implications - Disabling CFG reduces security protections for those specific executables
- Results may vary - CFG isn't the cause of stuttering for all games; effectiveness depends on the specific game
- Right-click
FixStutter.ps1→ Properties → Check Unblock if present - Run PowerShell as Administrator and execute:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Make sure you're using the exact executable name from Task Manager
- Restart the game after making changes
- Verify the script ran with Administrator privileges (check the window title)
- Open Task Manager while the game is running
- Find the game's process name (e.g.,
game.exe) - Add that name to
GameList.txt - Press
Rin the script to refresh
Disabling Control Flow Guard reduces security protections for the affected executables. Only disable CFG for:
- Trusted games and applications
- Programs where you're experiencing performance issues
- Software from reputable sources
Re-enable CFG when you're done testing or if you're not experiencing stuttering.
This project is provided as-is for personal use. Use at your own risk.
Feel free to:
- Add more games to the default list
- Report issues or bugs
- Suggest improvements
- Submit pull requests
- Test one game at a time to see if disabling CFG helps
- Monitor performance with tools like MSI Afterburner
- Re-enable CFG if you don't notice improvement
- Keep your game list organized with comments (using
#)
Disabling CFG may help with:
- Micro-stuttering
- Frame pacing issues
- Input lag in some games
- FPS drops during intensive scenes
Results vary by game and system configuration.
Made with ❤️ for smoother gaming
