Skip to content

Commit

Permalink
Readback: Downgrade from vkWaitDeviceIdle to vkWaitQueueIdle. Probabl…
Browse files Browse the repository at this point in the history
…y effectively pretty much the same.
  • Loading branch information
hrydgard committed Jul 14, 2020
1 parent e825544 commit e66f034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/native/thin3d/VulkanRenderManager.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit e66f034

Please sign in to comment.