TLDR: View System properties, performance settings, uncheck second one from bottom
The button got moved on windows 11. Its actually in a better place now :D
Open start menu (press windows key)
View Advanced System Properties
Under Advanced under Performance click "Settings..."
Under the new window there should be a bunch of checkmarks. its the second one up from the bottom, uncheck it.