[Android] Core 1++

This commit is contained in:
CamilleLaVey 2025-12-03 12:53:33 -04:00 committed by lizzie
parent 0b4ad8bc74
commit 2dde978d5f

View file

@ -361,8 +361,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;
}