Microsoft has introduced Game Mode with Windows 10 Creators Update, which is meant to help optimise your PC’s gaming performance. It does this by reallocating your system resources towards the game app. And here is how to enable Game Mode in Windows 10 Settings:
First, you need to turn on Game Mode system-wide. To do this, follow these steps:

  1. Hit the Start key, and choose the Settings icon.
  2. Choose Gaming.
  3. Click on Game Mode in the left panel.
  4. Turn on the toggle for Use Game Mode.

If you can’t find the above settings, your system doesn’t have the Creators Update installed. Check and install the latest updates.

How to enable Game Mode for any game on Windows 10
Once Game Mode has been enabled in the system settings, you can turn it on for any game. Not all games currently have full screen support, though. To turn on Game Mode for your preferred game, follow these steps:

  1. Launch your game of choice. Windows 10 will prompt you to open Game bar using Windows key + G combination. If it doesn’t, the game doesn’t have support currently.
  2. Press Windows key + G, or hit the Xbox button on your gamepad.
  3. Click the Settings icon to the extreme right on the Game bar.
  4. In the dialog box that opens, check the box for Use Game Mode for this game.

Reference.