Minecraft secondary gpu

Hi there, I’ve been using cachy os for a while and I want to play my minecraft modpack with my nvidia gpu. I’ve always played on cachy nvidia closed graphic’s with the default configuration. Every time, the installation detects me the card and I can play softly using my card but not now. I also have a Intel integrated graphic card in the procesor and the game uses that card.

I’ve followed nvidia prime arch installation and followed the steps until when i have to push the __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%
argument to minecraft. It crashes.

Also I don’t know if I can configure to use my nvidia gpu from nvidia setting application.

I’m using Kde, but if woud be necesary i could switch to gnome

Hey @HAGSO1!
You mentioned you play modded minecraft. What launcher do you use? minecraft launcher? curseforge?
The __NV_PRIME_RENDER_OFFLOAD=1 and __GLX_VENDOR_LIBRARY_NAME=nvidia variables should be set when you are launching your game, for example:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia curseforge

:bulb: These variables should only be set when launching the launcher command, and should not be set as java arguments inside you minecraft launcher

These variables should then tell your computer to use the nvidia gpu for the program you are launching and all its “children”

I don’t get this issue now that I have CachyOs, but I used to have issues using my main gpu when playing minecraft, so this could also help you if the above doesn’t work.

Could you please also give us a log of the error you are getting? ty :wink:

I believe for minecraft you also need __GL_THREADED_OPTIMIZATIONS=0.

I’m using curse forge with the default Launcher. I Kwon I Can’t push extra argumets un curse minecraft settings. I’ll post the Crash log later

Ok solved, thank all I’m a little clumsy, sorry

1 Like