diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-06-17 10:51:50 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-06-17 10:51:50 +0200 |
commit | c210de581e8ea27cfe43fb75ce11811bc962c2ff (patch) | |
tree | 53dfafab4e9d4ef22831121d2b3a69e1b8953678 /modules | |
parent | 63544169f02d075be112fe67ae9936434879a6d8 (diff) |
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().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/etc/image_etc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/etc/image_etc.cpp b/modules/etc/image_etc.cpp index 948f50b782..d9daffc59e 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<uint8_t>::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 |