The poster is not talking about in-game settings but Windows 10 settings. If it’s a laptop, one really needs to have it plugged in and set to high performance.
Use Windows 10 Game Mode
Here’s a quick and easy way to optimize Windows 10 for gaming using a tool that’s built into the system. Game Mode appeared in the most recent releases of the OS and is designed to improve the gaming experience by dedicating more system resources to games. It also prevents other programs, such as Windows Update, from hogging system resources while you’re playing.
To locate the Game Mode settings, press Windows key + I , type “ game mode ” in the search box and click Control Game Mode for optimizing your PC for games .
In the menu that opens, click Game Mode . Switch to On to turn Game Mode on. If your PC supports Game Mode, the system will optimize your PC gaming performance.
Use a High-Performance Power Plan
This might be a good solution if you’re using a desktop PC rather than a laptop, because power plans were designed to better manage battery use on portable devices. Having no such limitations on a desktop PC, it is worthwhile opting for a high-performance power plan that keeps the CPU frequency high and makes your PC perform better while consuming more energy and increasing the temperature level.
To change your power plan, click Windows key + I , type “ power ” in the search box, choose Power & sleep settings and then Additional power settings . If you don’t see a high-performance power plan on the left side of the screen, click Create a power plan and choose High performance .
source: How to Optimize Windows 10 for Gaming in 10 Easy Steps | 2021 Guide