[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
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with 2 additions and 2 deletions

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;
}