modrinth-enhanced, modrinth-enhanced-bin: preload vblank shim for the full refresh rate on nvidia
This commit is contained in:
1 parent
7421d40fd2
commit
69d3249c8d
10 files changed
+519
-18
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Starts Modrinth Enhanced with the vblank shim preloaded (see vblank-shim.c).
|
||||
# With the NVIDIA driver the shim only lifts the frame rate under X11, so it is
|
||||
# asked to keep GTK on X11 there. MODRINTH_VBLANK_SHIM=0 starts the app without.
|
||||
if [ "${MODRINTH_VBLANK_SHIM:-1}" != 0 ]; then
|
||||
[ -d /sys/module/nvidia_drm ] && export VBLANK_SHIM_GDK_BACKEND=x11
|
||||
export LD_PRELOAD="/usr/lib/modrinth-enhanced/libwebkit-vblank-shim.so${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
fi
|
||||
exec /usr/lib/modrinth-enhanced/ModrinthEnhanced "$@"
|
||||
Reference in new issue
Block a user