diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-08-26 12:03:11 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-08-30 21:11:13 +0800 |
commit | 50fb526c1011d0dd623e312ff70365e32a6d50a7 (patch) | |
tree | 9df3ac335b4d9fbab18654bfd7e7eaee01dff730 | |
parent | 036fabec4bcf82e3391a866eda36b642f93261a0 (diff) |
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.
-rw-r--r-- | indra/newview/llappviewerlinux.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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" ); // <FS:ND/> 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(); |