From c210de581e8ea27cfe43fb75ce11811bc962c2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 17 Jun 2017 10:51:50 +0200 Subject: [PATCH] etc: Do not overestimate number of CPU threads The *2 factor between cores and threads of most modern CPUs is already taken into account in get_processor_count(). --- modules/etc/image_etc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/etc/image_etc.cpp b/modules/etc/image_etc.cpp index 948f50b7821..d9daffc59ea 100644 --- a/modules/etc/image_etc.cpp +++ b/modules/etc/image_etc.cpp @@ -138,7 +138,7 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f PoolVector::Write w = dst_data.write(); // prepare parameters to be passed to etc2comp - int num_cpus = OS::get_singleton()->get_processor_count() * 2; //generally some cpus have 2 threads + int num_cpus = OS::get_singleton()->get_processor_count(); int encoding_time = 0; float effort = 0.0; //default, reasonable time