I have a laptop which has 2 GPUs, integrated (Intel HD Graphics 630) and dedicated (Nvidia Geforce GTX 1050). Whenever i play with the default profile, my laptop automatically uses the dedicated GPU, but when i play with optifine, it uses the integrated one. How do i set optifine to use my dedicated GPU? I've tried setting Minecraft to use dedicated GPU in the Nvidia Control Panel, and my laptop is plugged in (idk if that makes a difference). I want to try using shaders and obviously i don't want to use the integrated GPU. Is there a way to make optifine use my dedicated GPU? Suggestions are appreciated.
[EDIT: I fixed this by setting dedicated GPU to render all 3D applications]