Ubuntu 19.10 Minecraft Low FPS

I changed my OS to Ubuntu after seeing my GPU is working properly. Minecraft Version 1.8.9 Optifine Installed All low or disabled except fast render, fast math etc. FPS 40-60 Sometimes Drop To 10 For Half A Second. Using OpenJDK-JRE 8. Launcher command :

DRI_PRIME=1 sudo java -jar launcher.jar

Tried with and without sudo same performance. Smooth FPS disabled makes FPS low. System Info: Intel I3 6006U / HD Graphics 520 / AMD Radeon R5 M330 / 3.6 GB RAM (-Xmx1532M)

Minecraft uses GPU. GPU driver radeon. Never Tried amdgpu. Don't know how to use it.


Solution 1:

You don't need to disable your boot logo, unlike what you wrote in your own answer. Instead, it's just the command in step 10 that makes Minecraft actually use the GPU instead of just the CPU.

I had the same problem, occasional bad performance, in my case in Vanilla Minecraft. The solution was to start the game with prime-run minecraft-launcher instead of just minecraft-launcher.

The specific Linux distribution also needs to support the GPU, for example Debian 9 did not support my NVIDIA GeForce GTX 1050, but Manjaro 19 did, using the driver "video-hybrid-intel-nvidia-440xx-prime" (installed by default).