Wait for pipeline compilation to finish before loading the guest

The excessive blocking caused by initial compilation happening async to the guest caused issues in some cases, now we have a Vulkan pipeline cache to speed it up we can wait for a full compile before launch without too many issues.
This commit is contained in:
Billy Laws 2023-01-18 20:10:06 +00:00
parent be6f08cd97
commit 3e971d4043

View File

@ -933,8 +933,11 @@ namespace skyline::gpu::interconnect::maxwell3d {
#endif #endif
} }
gpu.graphicsPipelineAssembler->WaitIdle();
Logger::Info("Loaded {} graphics pipelines in {}ms", map.size(), (util::GetTimeNs() - startTime) / constant::NsInMillisecond); Logger::Info("Loaded {} graphics pipelines in {}ms", map.size(), (util::GetTimeNs() - startTime) / constant::NsInMillisecond);
gpu.graphicsPipelineAssembler->SavePipelineCache();
#ifdef PIPELINE_STATS #ifdef PIPELINE_STATS
for (auto &[key, list] : sharedPipelines) { for (auto &[key, list] : sharedPipelines) {
sortedSharedPipelines.push_back(&list); sortedSharedPipelines.push_back(&list);