Guide: run Minecraft at full speed on Rock 5B

It is expected that performance with Mesa is not yet as good as the blob driver.

It would be useful if you can install apitrace and upload a trace of Minecraft somewhere so that I can use it to optimise performance—note that gl4es should not be required for this.


Until I can improve performance, you may wish to play with the blob driver:

If you are using Wayland, you will need to compile https://gitlab.com/panfork/dri2to3.

You will also have to open the src/gl/loader.c file from gl4es and remove these two lines, then recompile and reinstall:

    if(!sanitizer)
        flags |= RTLD_DEEPBIND;

To actually download the blob driver is something like this:

mkdir -p ~/libmali/x11
cd ~/libmali/x11
wget https://github.com/JeffyCN/rockchip_mirrors/raw/libmali/lib/aarch64-linux-gnu/libmali-valhall-g610-g6p0-x11-gbm.so
ln -s libmali-valhall-g610-g6p0-x11-gbm.so libmali.so.1
for l in libEGL.so libEGL.so.1 libgbm.so.1 libGLESv2.so libGLESv2.so.2 libOpenCL.so.1; do ln -s libmali.so.1 $l; done

Then you would set these environment variables:

export LD_PRELOAD=~/dri2to3/build/libdri2to3.so LD_LIBRARY_PATH=/usr/lib/gl4es:~/libmali/x11

3 Likes