I recently decided to switch back to optimus mode on my laptop instead of using nvidia card only. But I encountered a little problem with gaming. Whenever I launch any game, some of them uses my discrete card and others like GD or Minecraft uses intel’s integrated card.
Is it any apps or commands to make any game use only nvidia card instead of integrated one?
For Minecraft, depending on the launcher, you can set the game to use the discrete GPU. I know only for Prism Launcher the steps to make it use your discrete GPU:
Download and install an instance.
After running it at least once, close the game and right click on the instance and then Edit
Click on Settings
Find the tab named Performance
Enable the tab and then enable Use Discrete GPU
For GD, I don’t know. I haven’t played. However, you can try to run it with prime-run in the terminal. You need to have nvidia-prime installed for that.
That works. There’s also adding __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia %command% to the launch options of games, but the prime-run method is also great.