Permalink
Browse files

Vulkan: Trigger condvar only at frame end.

  • Loading branch information...
unknownbrackets committed Nov 5, 2017
1 parent 8edc6ea commit ec0f640f569a2cc6367403f8bfde7f5e5782253b
Showing with 2 additions and 1 deletion.
  1. +2 −1 ext/native/thin3d/VulkanRenderManager.cpp
@@ -640,7 +640,8 @@ void VulkanRenderManager::Submit(int frame, bool triggerFence) {
assert(res == VK_SUCCESS);
}
if (useThread) {
// TODO: If !triggerFence, we're actually not using the thread right now.
if (useThread && triggerFence) {
VLOG("PULL: Frame %d.readyForFence = true", frame);
std::unique_lock<std::mutex> lock(frameData.push_mutex);
frameData.readyForFence = true;

0 comments on commit ec0f640

Please sign in to comment.