How to run minecraft through a launcher that supports a discrete video card?

I’ve encountered a problem. Minecraft runs on the built-in AMD video card, but I need a discrete NVIDIA to work. I tried through: ‘DRI_PRIME=1 java VictoryCraft.jar’, but the menu shows that the game starts without a video card. It’s just empty. Tell me, is it possible to somehow configure Java itself so that it starts from discrete or something else?

env DRI_PRIME=1 java VictoryCraft.jar
switcherooctl launch -g 1 java VictoryCraft.jar
1 Like

Ty. Its work!

1 Like