mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-19 22:57:00 +02:00
[Android] Core 1++
This commit is contained in:
parent
bbce9ffeed
commit
a95de7c62b
1 changed files with 2 additions and 2 deletions
|
|
@ -318,8 +318,8 @@ size_t GetTotalPipelineWorkers() {
|
||||||
const size_t max_core_threads =
|
const size_t max_core_threads =
|
||||||
std::max<size_t>(static_cast<size_t>(std::thread::hardware_concurrency()), 2ULL) - 1ULL;
|
std::max<size_t>(static_cast<size_t>(std::thread::hardware_concurrency()), 2ULL) - 1ULL;
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
// Leave at least two cores free on Android to reduce thermal pressure.
|
// Leave at least one core free on Android to reduce thermal pressure.
|
||||||
constexpr size_t free_cores = 2ULL;
|
constexpr size_t free_cores = 1ULL;
|
||||||
if (max_core_threads <= free_cores) {
|
if (max_core_threads <= free_cores) {
|
||||||
return 1ULL;
|
return 1ULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue