Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/scripts/ci
diff options
context:
space:
mode:
authorgrbr404 <166065505+grbr404@users.noreply.github.com>2025-05-02 22:54:14 +0200
committerGitHub <noreply@github.com>2025-05-02 22:54:14 +0200
commit02566b69572d0c2f65b44744d732e8316e2c1bd9 (patch)
tree20a53e1292b55d2503f6dbd3b78cf7cb6ea6e23c /scripts/ci
parent2875098be4670d3b672c1d880dcc2c69839328fe (diff)
Use Zink for OpenGL on Linux if supported
If your system supports the Zink driver, you can use it for OpenGL rendering by switching to the Vulkan backend. This can improve performance.
Diffstat (limited to 'scripts/ci')
-rwxr-xr-xscripts/ci/linux/run-client.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/ci/linux/run-client.sh b/scripts/ci/linux/run-client.sh
index b7cb8ba..6faf5e7 100755
--- a/scripts/ci/linux/run-client.sh
+++ b/scripts/ci/linux/run-client.sh
@@ -1,5 +1,13 @@
#!/bin/sh
+# Check for Zink support
+if MESA_LOADER_DRIVER_OVERRIDE=zink glxinfo | grep -q 'renderer string.*zink'; then
+ # Set environment variables for Zink
+ export __GLX_VENDOR_LIBRARY_NAME=mesa
+ export MESA_LOADER_DRIVER_OVERRIDE=zink
+ export GALLIUM_DRIVER=zink
+fi
+
cd "`dirname \"$0\"`"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ./starbound "$@"