aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-04-07 10:58:31 +0200
committerdec05eba <dec05eba@protonmail.com>2022-04-07 10:58:31 +0200
commit8433b0f6f7414a040b25b34515d75b907c584321 (patch)
tree2f485d374865c927c635b06c814a3df8169b23ef
parentfe52a52f12d77a55373ad0fd26df49f525a7ef35 (diff)
Force disable threaded gl optimization to reduce cpu usage (thread optimization doesn't improve performance here so its useless)
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 52cb374..f0dca82 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3,6 +3,7 @@
#include <X11/Xlib.h>
int main(int argc, char **argv) {
+ setenv("__GL_THREADED_OPTIMIZATIONS", "0", 1);
XInitThreads();
setlocale(LC_ALL, "C"); // Sigh... stupid C
QuickMedia::Program program;