mirror of
https://github.com/termux/termux-packages.git
synced 2025-09-23 17:12:30 +00:00
16 lines
553 B
Diff
16 lines
553 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
|
|
@@ -1092,6 +1092,9 @@
|
|
screen->num_threads = debug_get_num_option("LP_NUM_THREADS",
|
|
screen->num_threads);
|
|
screen->num_threads = MIN2(screen->num_threads, LP_MAX_THREADS);
|
|
+#if defined __ANDROID__
|
|
+ screen->num_threads = 0;
|
|
+#endif
|
|
|
|
lp_build_init(); /* get lp_native_vector_width initialised */
|
|
|