Use Game Mode while gaming on your Windows device | Xbox Support
Choose Gaming > Game Mode. Turn Game Mode On or Off. Note Game Mode is turned on by default. Did this resolve the issue? Find out how to turn on Game Mode while playing a game on your Windows 10/11 device.