mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-28 07:29:51 +01:00
[TEST] Hunting down recursive mutex 5
This commit is contained in:
parent
84490a7d6f
commit
a484e6c34b
2 changed files with 3 additions and 5 deletions
|
|
@ -147,7 +147,7 @@ namespace AndroidSettings {
|
||||||
&show_performance_overlay};
|
&show_performance_overlay};
|
||||||
|
|
||||||
|
|
||||||
Settings::Setting<s32> pipeline_worker_count{linkage, 0, "pipeline_worker_count",
|
Settings::Setting<s32> pipeline_worker_count{linkage, 2, "pipeline_worker_count",
|
||||||
Settings::Category::Android,
|
Settings::Category::Android,
|
||||||
Settings::Specialization::Default,
|
Settings::Specialization::Default,
|
||||||
true,
|
true,
|
||||||
|
|
|
||||||
|
|
@ -305,10 +305,8 @@ size_t GetTotalPipelineWorkers() {
|
||||||
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__
|
||||||
const int configured = AndroidSettings::values.pipeline_worker_count.GetValue();
|
const int configured = AndroidSettings::values.pipeline_worker_count.GetValue();
|
||||||
if (configured <= 0) {
|
const size_t desired = static_cast<size_t>(std::max(configured, 1));
|
||||||
return max_core_threads;
|
return std::min<size_t>(max_core_threads, desired);
|
||||||
}
|
|
||||||
return std::min<size_t>(max_core_threads, static_cast<size_t>(configured));
|
|
||||||
#else
|
#else
|
||||||
return max_core_threads;
|
return max_core_threads;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue