mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-25 16:54:41 +00:00
[TEST] Hunting down recursive mutex 5
(cherry picked from commit a484e6c34b)
This commit is contained in:
@@ -147,7 +147,7 @@ namespace AndroidSettings {
|
||||
&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::Specialization::Default,
|
||||
true,
|
||||
|
||||
@@ -305,10 +305,8 @@ size_t GetTotalPipelineWorkers() {
|
||||
std::max<size_t>(static_cast<size_t>(std::thread::hardware_concurrency()), 2ULL) - 1ULL;
|
||||
#ifdef __ANDROID__
|
||||
const int configured = AndroidSettings::values.pipeline_worker_count.GetValue();
|
||||
if (configured <= 0) {
|
||||
return max_core_threads;
|
||||
}
|
||||
return std::min<size_t>(max_core_threads, static_cast<size_t>(configured));
|
||||
const size_t desired = static_cast<size_t>(std::max(configured, 1));
|
||||
return std::min<size_t>(max_core_threads, desired);
|
||||
#else
|
||||
return max_core_threads;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user