Depending on the model of MacBook Pro you have, you may be able to physically choose whether your computer uses the high-power discreet graphics card for better performance or the low-power integrated graphics chip for better battery life by using an option known as Automatic Graphics Switching.
The feature is only available on MacBook Pros which have two Graphics Processing Units (GPU). The reason it only exists on certain models of the MacBook Pro is not all Macs have dual GPUs. And desktop Macs don’t need this as they don’t rely on batteries and are connected to a power source all the time.
Here's more about Automatic Graphics Switching and how to enable it on your Mac.