mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-03-01 07:31:50 -03:00
v2.4.7: Fix Linux SDL3_image crash and NVIDIA Wayland stability
- Add LD_LIBRARY_PATH with Client directory so the dynamic linker finds bundled native libraries (libSDL3_image.so.0, etc). Official Hytale uses Flatpak which provides these; F2P runs natively and needs this. - Add __NV_DISABLE_EXPLICIT_SYNC=1 for NVIDIA on Wayland to prevent crashes on Hyprland and other Wayland compositors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -594,6 +594,10 @@ function setupGpuEnvironment(gpuPreference) {
|
||||
if (detected.vendor === 'nvidia') {
|
||||
envVars.__NV_PRIME_RENDER_OFFLOAD = '1';
|
||||
envVars.__GLX_VENDOR_LIBRARY_NAME = 'nvidia';
|
||||
// Prevent Wayland explicit sync crashes on NVIDIA (Hyprland, etc.)
|
||||
if (isWaylandSession()) {
|
||||
envVars.__NV_DISABLE_EXPLICIT_SYNC = '1';
|
||||
}
|
||||
const nvidiaEglFile = '/usr/share/glvnd/egl_vendor.d/10_nvidia.json';
|
||||
if (fs.existsSync(nvidiaEglFile)) {
|
||||
envVars.__EGL_VENDOR_LIBRARY_FILENAMES = nvidiaEglFile;
|
||||
|
||||
Reference in New Issue
Block a user