To enable game mode in Windows 11. Click on the windows start button and open settings. Click on gaming and select game mode. Use the switch to toggle game mode on or off to utilize the Windows game bar.
Open any game on your computer when the game launches, press the windows key and G this will open the Xbox game bar where you can adjust the settings or start a recording.