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]
Open the Minecraft Launcher > menu button > Launch options > select any unmodded profile > click <Use bundled Java runtime> and write down the path of the Java Executable,
Open the Nvidia Control Panel > Manage 3D Settings > Program Settings,
Click Add > Browse to the Java executable using the path the first step and click Open then Add Selected Program,
Once found and selected, change the Preferred graphics processor to High-performance NVIDIA processor. Click Apply to finish.
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]
Your Optifine profile probably uses a different Java installation path. Add all Java paths to Nvidia control panel.
How?
The same way you did with MC.
Thanks