#!/bin/bash # Ensure we're using the correct home directory export HOME=/config # Set optimal Java options for RuneLite # -Xmx: Maximum heap size (adjust based on container memory) # -Xms: Initial heap size (match Xmx for consistent performance) # -Dsun.java2d.opengl: Enable OpenGL acceleration for Java2D # --mode=AUTO: RuneLite will auto-select GPU mode if available exec java \ -Xmx1024m \ -Xms1024m \ -Dsun.java2d.opengl=true \ -jar /usr/local/bin/RuneLite.jar \ --mode=AUTO