mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-13 06:38:34 +02:00
[vk] Increased PipelineWorkers for testing purposes
This commit is contained in:
parent
d9d021be62
commit
e30654b76b
1 changed files with 3 additions and 3 deletions
|
|
@ -318,9 +318,9 @@ 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 a few cores free on Android; reserve two instead of three so
|
// Leave at least one core free on Android. Previously we reserved two, but
|
||||||
// pipeline compilation can consume one more worker thread for testing.
|
// shipping builds benefit from one extra compilation worker.
|
||||||
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