Repository: godot
Issue: Screen capture shows game as frozen when recorded in fullscreen
Labels: bug,platform:windows,topic:porting

### Godot version

3.5.1 Mono

### System information

Windows 10, NVIDIA GeForce RTX 3060, GeForce Shadowplay, Xbox Game Bar

### Issue description

For context, I have been using shadowplay as part of my workflow for a long time since I started working in Godot, and it has worked just fine until fairly recently.

**EDIT:** Apologies, I totally forgot to mention that I got a new GPU recently, and after that is when the issue started occurring for me. I used to have a GeForce 970, and now I have a GeForce RTX 3060.

Now Godot games show as frozen in screen capture recordings made with GeForce Shadowplay. Audio can be heard in the background, but the image is not moving. 

**Workaround:** I can record Dome Keeper without the screen being frozen IF playing the game in windowed instead of full-screen.

Screen capturing via the Xbox Game Bar (accessible by pressing XBOX button on xbox gamepad, or WIN + G - Default keyboard mapping) is shown as _"not being supported for the game's current settings"_.

This issue occurs with e.g. [DOME KEEPER](https://store.steampowered.com/app/1637320/Dome_Keeper/) (Released Godot game on Steam) and the game I am developing in Godot with my buddies @TheOrioli and crew at [Kikimora Games](https://www.kikimora.games/).

![Xbox Capture - Dome Keeper](https://user-images.githubusercontent.com/22318949/212543359-47525366-25a4-4a4b-b4c0-be0610bcf66d.jpg)

![Xbox Capture - Kikimora Games](https://user-images.githubusercontent.com/22318949/212543360-cc392df2-48ce-4eeb-8741-029b6aa08182.jpg)

In addition...

1. Recordings made with shadowplay used to be put in folders specifically for each game, e.g. a DOME KEEPER folder etc. Now recordings from both Dome Keeper and the game I am developing with my buddies is put into a folder called "Base Profile".
2. I no longer see the shadowplay overlay in the corner of the screen on top of godot games (e.g. FPS, recording status, etc) played in fullscreen. If switching to windowed I see the overlay.

![Recording Folders](https://user-images.githubusercontent.com/22318949/212543164-9132b71a-199d-4129-ac30-35558687feaa.png)

Also see somewhat related issue https://github.com/godotengine/godot/issues/71282 which I noticed around the same time.

I have tried adjusting my settings both in-game and for my displays to see if the issue stops occuring, but so far the only workaround I have found is playing game in windowed mode instead of fullscreen.


### Steps to reproduce

**Prerequisites:** Have Xbox Game Bar + GeForce Shadowplay set up.

1. Boot up your godot game, OR e.g. Dome Keeper (Steam)
2. Play the game in fullscreen
3. Try to record via Xbox Game Bar
5. Record via Shadowplay
6. Look at your shadowplay recordings

**Result:** Observe that you can not record with Xbox Game Bar due to it not being supported with the game's current settings. Also observe that the image is frozen for recordings made with shadowplay.

**Workaround:** Play and record the game in windowed mode.

**Repro Video:** (You can hear the game audio playing while screen is frozen - See it stop occurring when enabling windowed)

https://user-images.githubusercontent.com/22318949/212542804-3d5c933c-2108-4462-9c7c-331c58de5030.mp4

### Minimal reproduction project

N/A