Press the Start button on your keyboard and type Game Click Game Mode Settings when it appears at the top of the Start menu Click the button to turn on Game mode
Press the Start button and search for Graphics Settings Then click to turn on Hardware-accelerated GPU Scheduling Scroll down and view the settings for “graphics performance preference” from there you can choose the app to set your preference. For Nvidia, this is the Nvidia Control panel. You can select this as a desktop app or Microsoft store app via the dropdown Click on the app, click options and select high performance
Hit the Start button and type Power Click on Power & Sleep settings On the right-hand side of the window that pops up, click additional power settings From there select either high performance or ultimate performance to ensure you have enough power for your game