mirror of
https://github.com/termux/termux-packages
synced 2024-06-19 10:07:08 +00:00
17 lines
609 B
Diff
17 lines
609 B
Diff
Disable multithreading by default because it seems to introduce a significant
|
|
overhead when enabled.
|
|
|
|
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
|
|
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
|
|
@@ -1096,7 +1096,9 @@
|
|
screen->use_tgsi = (LP_DEBUG & DEBUG_TGSI_IR);
|
|
screen->num_threads = util_get_cpu_caps()->nr_cpus > 1
|
|
? util_get_cpu_caps()->nr_cpus : 0;
|
|
-#ifdef EMBEDDED_DEVICE
|
|
+#if defined __ANDROID__
|
|
+ screen->num_threads = 0;
|
|
+#elif defined EMBEDDED_DEVICE
|
|
screen->num_threads = MIN2(screen->num_threads, 2);
|
|
#endif
|
|
screen->num_threads = debug_get_num_option("LP_NUM_THREADS",
|