[D3D12] Use 3/4 of logical cores for pipeline creation, cleanup pipeline log messages

This commit is contained in:
Triang3l
2019-01-04 14:30:26 +03:00
parent 890228b6f3
commit 1523a1f662
2 changed files with 107 additions and 79 deletions

View File

@@ -223,7 +223,7 @@ class PipelineCache {
// Manual-reset event set when the last queued pipeline is created and there
// are no more pipelines to create. This is triggered by the thread creating
// the last pipeline.
std::unique_ptr<xe::threading::Event> creation_completion_event_;
std::unique_ptr<xe::threading::Event> creation_completion_event_ = nullptr;
// Whether setting the event on completion is queued. Protected with
// creation_request_lock_, notify_one creation_request_cond_ when set.
bool creation_completion_set_event_ = false;