The key is Win + Alt + G. But that shortcut only works when background recording is enabled and the game is being recognized for capture. Set it up once, tune it sensibly, and it becomes a remarkably useful safety net rather than another performance-hungry passenger in your gaming PC.
Quick result: Turn on background capture, play your game, then press Win + Alt + G after a great moment. The saved clip is normally an MP4 file in Videos\Captures.
Turn on “Record what happened”
Windows 11
- Press Win + I to open Settings.
- Select Gaming.
- Open Captures.
- Find Record what happened and turn it On.
- Use the duration control below it to choose how much recent gameplay Windows should retain.
For the classic quick-highlight setup, select 30 seconds. That gives the Win + Alt + G shortcut its familiar “save that thing I just did” behavior.
Windows 10
- Open Settings with Win + I.
- Go to Gaming > Captures.
- Enable the option labeled Record in the background while I’m playing a game or similar wording.
- Choose the desired background-recording duration.
A note for Windows 10 users: Microsoft ended support for Windows 10 on October 14, 2025. The capture feature may still work on existing installations, but Windows 11 is the supported platform for current Windows security and feature servicing.
Save the last 30 seconds of gameplay
Once background recording is enabled:
- Launch a game and play normally.
- When something worth keeping happens, press Win + Alt + G.
- Look for the capture confirmation notification.
- Open File Explorer and go to Videos > Captures to find the saved MP4 clip.
That is the whole trick. Game Bar is continuously retaining the amount of recent footage you selected, then writes that buffered segment to a real video file only when you ask it to. It is instant replay for PC gaming, minus the sports commentator shouting about it.
You can also press Win + G to open Xbox Game Bar, then use the Capture widget’s Record what happened button.
Choose the right clip duration
In Settings > Gaming > Captures, the background-recording duration determines how much gameplay is available when you press Win + Alt + G.
| Best for | Suggested duration | Why |
|---|---|---|
| Quick kills, goals, and funny fails | 30 seconds | Lowest overhead and easiest to manage |
| Tactical shooters or racing replays | 1–3 minutes | Gives context before the decisive moment |
| Boss fights, long combos, or troubleshooting | 5–10 minutes | Captures a fuller sequence, but costs more resources |
A longer buffer is not automatically better. It consumes more storage activity and can add more pressure to the system while you play. If your game is already flirting with your GPU’s limits, starting with 30 seconds is the sensible move.
Configure video quality and frame rate without sabotaging FPS
The same Captures settings page includes options for video frame rate and video quality. Exact labels and available choices can vary by Windows build and hardware, but the rule is pleasingly simple: higher quality and higher frame rate create larger files and require more encoding work.
A practical starting point
- Frame rate: Start at 30 FPS if you play demanding games or use a laptop.
- Video quality: Start with the standard or normal-quality option.
- Background duration: Use 30 seconds.
- Storage: Save clips to a drive with comfortable free space, preferably not one that is nearly full.
For fast shooters, racing games, fighting games, or clips you expect to edit, 60 FPS can make movement look considerably smoother. But 60 FPS is not magic dust. If it introduces stutter, dropped frames, or lower in-game performance, return to 30 FPS. A smooth game with a clean 30 FPS clip beats a choppy 60 FPS recording every time.
Microsoft has long cautioned that background capture is performance-sensitive, even where hardware encoding is available. In practical terms, a powerful desktop GPU may barely notice it, while an integrated-GPU laptop or a system already running near its limit may notice immediately.
Test changes one at a time
Do not change duration, quality, frame rate, resolution, and in-game graphics all at once. That is how a simple capture test turns into a detective novel.
Instead:
- Keep your usual in-game graphics settings.
- Enable 30-second background recording at 30 FPS.
- Play a busy section for several minutes.
- Save a clip with Win + Alt + G.
- Check both gameplay smoothness and the saved video.
- Raise quality or frame rate only if the game remains stable.
Set up game and microphone audio
A highlight without the game’s audio is usually less dramatic. A highlight with an accidentally hot microphone can be dramatically worse.
In Settings > Gaming > Captures, review Capture audio when recording a game. Turn it on if you want game sound included. If you narrate clips, play with friends, or create guides, also check the microphone options in Xbox Game Bar:
- Press Win + G while a game is open.
- Select the Settings gear.
- Open the Capturing area.
- Review the audio choices and microphone behavior.
- Make a brief test capture before relying on the setup for an important session.
During an active manual recording, Win + Alt + M toggles the microphone on or off. For instant-replay clips, test your chosen configuration first; the clip can only preserve audio that Game Bar was configured to capture during the buffered period.
If voice audio is missing, verify that Windows is using the intended input device under Settings > System > Sound. USB microphones, webcams, Bluetooth headsets, and virtual audio devices can all compete for the “default” role when Windows is feeling indecisive.
What Game Bar can—and cannot—capture
Xbox Game Bar is designed principally for games and individual application windows. It is ideal for gameplay clips, but it is not a universal desktop recorder. Do not depend on it to capture the Windows desktop, File Explorer, or every protected video application.
If the capture command is unavailable or grayed out:
- Make sure Record what happened is enabled.
- Launch the game first, then press Win + G.
- If Game Bar asks whether the focused app is a game, confirm it.
- Check that you have sufficient free disk space.
- Restart the game after changing major capture settings.
- Update Xbox Game Bar through Microsoft Store if it appears outdated.
For Windows N editions, Game Bar and capture functions can also depend on the Media Feature Pack, which provides Windows media components required by recording features.
When to turn background recording off
Leave it enabled when you are actively hunting highlights. Turn it off when you are not.
Background recording has a real, if variable, cost in GPU resources, CPU time, power draw, and storage writes. On a desktop with ample headroom, that cost can be modest. On a battery-powered handheld, a thin laptop, or a PC struggling to keep frame times steady, it may be exactly the straw that makes a smooth game feel like it is running through wet cement.
The compromise is easy:
- Competitive or demanding sessions: 30 seconds, 30 FPS, standard quality.
- Casual games and capable hardware: Try 60 FPS or higher quality.
- Benchmarking, troubleshooting stutter, or chasing maximum FPS: Disable background recording temporarily.
Xbox Game Bar’s instant replay is most useful when it is quiet, predictable, and invisible until you need it. Configure the buffer, verify audio, press Win + Alt + G after the moment, and let Windows do the time travel.