Introduction / Why This Is Needed
Windows Defender (Microsoft Defender Antivirus) is the built-in antivirus that provides basic system protection. However, its background processes, especially real-time protection, can periodically scan files, leading to brief FPS (frames per second) drops and micro-stutters in resource-intensive games.
This guide shows how to temporarily disable active protection for your gaming session. This isn't a permanent solution, but a way to eliminate potential conflicts between the antivirus and the game while you play. Always re-enable protection after finishing your game!
Requirements / Preparation
Before you begin, ensure that:
- You have administrator rights on your computer.
- You are using Windows 10 (version 2004 or newer) or Windows 11. The "Windows Security" interface may vary slightly in older builds.
- The game you plan to play is installed from an official source (Steam, Epic Games Launcher, GOG, etc.). Disabling protection for pirated copies is extremely risky.
- You are prepared to re-enable protection after your gaming session ends.
Step-by-Step Instructions
Step 1: Open the "Windows Security" App
The "Windows Security" (Windows Security) app is the central hub for managing built-in protection.
- Press the Win (Windows logo) key on your keyboard.
- Start typing
Windows Security. - From the search results, select the app with the shield icon.
Alternative method: Click the shield icon in the system tray (bottom-right corner of the screen, next to the clock). If the icon isn't visible, click the "^" arrow to show hidden icons.
Step 2: Navigate to the Virus & Threat Protection Management
In the opened "Windows Security" window:
- In the left vertical menu, select "Virus & threat protection".
- In the central area under the "Virus & threat protection" header, you will see the "Manage settings" block. Click on it.
Step 3: Disable "Real-time Protection"
This is the key toggle. This component interacts most actively with the file system and can cause delays.
- In the settings screen that opens, find the "Real-time protection" row.
- Toggle the switch to the "Off" position.
- A system warning (UAC) may appear asking, "Do you want to allow this app to make changes to your device?". Click "Yes" to confirm the change.
⚠️ Important: After this, Defender stops actively scanning opened and modified files. Protection will automatically re-enable after a computer restart or if the system detects a threat.
Step 4: Add the Game Folder to Exclusions (Recommended)
To avoid leaving your system completely unprotected during gameplay, add its installation folder to the exclusions list. This tells Defender: "Don't touch these files, they are safe."
- In the same "Manage settings" window, scroll down to the "Add or remove exclusions" section.
- Click the "Add an exclusion" button.
- From the dropdown menu, select "Folder".
- A standard Explorer window will open. Locate and select the main game folder. It is typically found at:
C:\Program Files (x86)\Steam\steamapps\common\Game_NameC:\Program Files\Epic Games\Game_NameC:\GOG Games\Game_Name
- Click "Select Folder".
Now all files inside this folder (.exe executables, .dll libraries, resources) will not be scanned by Defender, even if you re-enable protection in Step 3.
Step 5: Verify Protection Status
Return to the main screen of the "Windows Security" app (Virus & threat protection section).
- If protection is disabled, you will see a yellow shield icon with an exclamation mark and text: "Your antivirus is turned off" or "Real-time protection: Off".
- If you added an exclusion, in the "Manage settings" block next to "Real-time protection", there will be no green checkmark, but the line itself will show the status "Off".
You can also check the status via PowerShell (run as administrator):
Get-MpComputerStatus | Select-Object -Property AMRunningMode, RealTimeProtectionEnabled
If RealTimeProtectionEnabled returns False — protection is disabled.
Verifying the Result
- Launch the game where you experienced lag.
- Play for 10-15 minutes in your typical gameplay (dense combat, open worlds).
- Assess FPS stability using the game's built-in tools (e.g.,
Shift+F2in many Unreal Engine games) or third-party software (MSI Afterburner, Fraps). - If micro-stutters/lags decreased — the issue was likely the antivirus.
💡 Tip: For a more accurate comparison, before disabling Defender, record the average FPS and 1% low FPS (minimum values) over 10 minutes. Compare these with the same metrics after disabling.
Potential Issues
Issue: The "Real-time protection" toggle won't move or turns back on immediately.
Cause: A security policy set by a corporate administrator or another antivirus program (e.g., Norton, Kaspersky) may be active. This can also be a result of enabling "Core isolation" or "Memory integrity" in Windows security settings.
Solution:
- Ensure no other antivirus is installed. If there is, uninstall it so Defender becomes the primary provider again.
- Check Core isolation settings (in the same "Windows Security" app → "Device security"). If "Memory integrity" or other enhanced security features are on, try disabling them.
- If the computer is on a corporate domain, you won't be able to change these settings yourself — contact your system administrator.
Issue: The game won't launch or works incorrectly even after disabling Defender.
Cause: The problem may not be the antivirus but drivers, Windows settings, or software conflicts.
Solution:
- Update your graphics card drivers (NVIDIA GeForce Experience / AMD Adrenalin).
- Check if Game Mode and Power mode (set to "Best performance") are enabled in Windows settings (
Windows Settings → Gaming → Game Mode). Sometimes their combination with a disabled antivirus has the opposite effect. - Ensure the game is running in compatibility mode (if it's an older title).
- Verify game file integrity via the client (Steam: Properties → Installed Files → Verify Integrity).
Issue: Forgot to turn Defender back on after gaming.
Solution:
- Simply go back to
Windows Security → Virus & threat protection → Manage settingsand turn "Real-time protection" back on. - No additional configuration is needed for it to turn back on automatically after a reboot — this is the system's default behavior.
- For permanent disabling (which is strongly not recommended), you would need to edit the registry or Group Policy (
gpedit.msc), which is beyond the scope of this guide.
Alternative Approach: Configuring Exclusions Without Full Disable
If you don't want to disable protection entirely, you can only add exclusions for game folders and processes. This is a safer method, but the FPS effect may be less noticeable since Defender continues operating in other system areas.
- Skip Step 3 (do not disable "Real-time protection").
- Proceed directly to Step 4 and add exclusions for:
- The game folder (as described above).
- The game's executable files (
.exe). In the "Add or remove exclusions" menu, select "File" and point togame.exe. - The game's temporary files folder (if known, often
%localappdata%\Game_Name).
- Restart the game.
This method keeps the system protected but removes potential blocks specifically from game files.