[Android] Core 1++

This commit is contained in:
CamilleLaVey
2025-12-03 12:53:33 -04:00
committed by Caio Oliveira
parent bbce9ffeed
commit a95de7c62b

View File

@@ -318,8 +318,8 @@ size_t GetTotalPipelineWorkers() {
const size_t max_core_threads =
std::max<size_t>(static_cast<size_t>(std::thread::hardware_concurrency()), 2ULL) - 1ULL;
#ifdef ANDROID
// Leave at least two cores free on Android to reduce thermal pressure.
constexpr size_t free_cores = 2ULL;
// Leave at least one core free on Android to reduce thermal pressure.
constexpr size_t free_cores = 1ULL;
if (max_core_threads <= free_cores) {
return 1ULL;
}