Vulkan: Trigger condvar only at frame end.

This commit is contained in:
Unknown W. Brackets committed 2017-11-04 21:10:33 -07:00
1 parent 8edc6eaf5e
commit ec0f640f56
1 file changed
+2 -1
+2 -1
View File
@@ -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;