Mapsd: disable threading on PC too (#30396)

single threaded rendering
pull/30398/head
Justin Newberry 1 year ago committed by GitHub
parent d2c3c92fb4
commit 9257066c4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      system/hardware/pc/hardware.h

@ -24,5 +24,6 @@ public:
static void config_cpu_rendering() { static void config_cpu_rendering() {
setenv("QT_QPA_PLATFORM", "offscreen", 1); setenv("QT_QPA_PLATFORM", "offscreen", 1);
setenv("__GLX_VENDOR_LIBRARY_NAME", "mesa", 1); setenv("__GLX_VENDOR_LIBRARY_NAME", "mesa", 1);
setenv("LP_NUM_THREADS", "0", 1); // disable threading so we stay on our assigned CPU
} }
}; };

Loading…
Cancel
Save