Readback: Downgrade from vkWaitDeviceIdle to vkWaitQueueIdle. Probably effectively pretty much the same.

This commit is contained in:
Henrik Rydgård
2020-07-14 09:06:07 +02:00
parent e8255441fb
commit e66f034fb3
+2 -2
View File
@@ -1188,8 +1188,8 @@ void VulkanRenderManager::EndSyncFrame(int frame) {
Submit(frame, false);
// This is brutal! Should probably wait for a fence instead, not that it'll matter much since we'll
// still stall everything.
vkDeviceWaitIdle(vulkan_->GetDevice());
// still stall everything on our queue.
vkQueueWaitIdle(vulkan_->GetGraphicsQueue());
// At this point we can resume filling the command buffers for the current frame since
// we know the device is idle - and thus all previously enqueued command buffers have been processed.