Skip to content

Commit

Permalink
Mapsd: disable threading on PC too (commaai#30396)
Browse files Browse the repository at this point in the history
single threaded rendering
  • Loading branch information
jnewb1 authored Nov 7, 2023
1 parent d2c3c92 commit 9257066
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/hardware/pc/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ class HardwarePC : public HardwareNone {
static void config_cpu_rendering() {
setenv("QT_QPA_PLATFORM", "offscreen", 1);
setenv("__GLX_VENDOR_LIBRARY_NAME", "mesa", 1);
setenv("LP_NUM_THREADS", "0", 1); // disable threading so we stay on our assigned CPU
}
};

0 comments on commit 9257066

Please sign in to comment.