From 50fb526c1011d0dd623e312ff70365e32a6d50a7 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Tue, 26 Aug 2025 12:03:11 +0800 Subject: Enable NVIDIA GL threaded optimisations by default https://www.phoronix.com/review/nvidia_threaded_opts If a user needs it to be off, then set __GL_THREADED_OPTIMIZATIONS to 0 upon launching, the built-in enabling is set not to overwrite. --- indra/newview/llappviewerlinux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview/llappviewerlinux.cpp') diff --git a/indra/newview/llappviewerlinux.cpp b/indra/newview/llappviewerlinux.cpp index 376eeca9fd..18ac523e0c 100644 --- a/indra/newview/llappviewerlinux.cpp +++ b/indra/newview/llappviewerlinux.cpp @@ -129,7 +129,8 @@ int main( int argc, char **argv ) #ifdef __aarch64__ setenv("LD_PRELOAD", APP_PLUGIN_DIR"/libcef.so", 1); #else - unsetenv( "LD_PRELOAD" ); // Get rid of any preloading, we do not want this to happen during startup of plugins. + setenv("LD_PRELOAD", "libpthread.so.0 libGL.so.1", 1); + setenv("__GL_THREADED_OPTIMIZATIONS", "1", 0); #endif bool ok = viewer_app_ptr->init(); -- cgit v1.2.3