From d9b7b9b672209b403c259aa331edcc34f3d4e7e8 Mon Sep 17 00:00:00 2001 From: Bobby Dilley Date: Fri, 5 Jan 2024 23:54:08 +0000 Subject: [PATCH] Force use of Nvidia card --- src/lindbergh/lindbergh.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lindbergh/lindbergh.c b/src/lindbergh/lindbergh.c index 9e28990..e4e7012 100644 --- a/src/lindbergh/lindbergh.c +++ b/src/lindbergh/lindbergh.c @@ -63,6 +63,10 @@ void setEnvironmentVariables() // Ensure the preload path is set correctly setenv(LD_PRELOAD, PRELOAD_FILE_NAME, 1); + + // Ensure the game runs on the NVidia Graphics Card + setenv("__NV_PRIME_RENDER_OFFLOAD", "1", 1); + setenv("__GLX_VENDOR_LIBRARY_NAME", "nvidia", 1); } /**