From cf3ce4f98b559cb1612852a567e7b62e02f3b9a2 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Tue, 15 Jan 2019 21:04:17 +0300 Subject: [PATCH] [D3D12] Unhardcode forgotten pipeline creation thread count --- src/xenia/gpu/d3d12/pipeline_cache.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xenia/gpu/d3d12/pipeline_cache.cc b/src/xenia/gpu/d3d12/pipeline_cache.cc index 695cbc039..434ebef14 100644 --- a/src/xenia/gpu/d3d12/pipeline_cache.cc +++ b/src/xenia/gpu/d3d12/pipeline_cache.cc @@ -93,9 +93,7 @@ bool PipelineCache::Initialize() { creation_thread_count = uint32_t(FLAGS_d3d12_pipeline_creation_threads); } creation_thread_count = std::min(creation_thread_count, uint32_t(16)); - // TODO(Triang3l): Change the thread count to something non-fixed (3 is just - // for testing). - for (uint32_t i = 0; i < 3; ++i) { + for (uint32_t i = 0; i < creation_thread_count; ++i) { std::unique_ptr creation_thread = xe::threading::Thread::Create({}, [this]() { CreationThread(); }); creation_thread->set_name("D3D12 Pipelines");