mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 00:59:41 +01:00
Vulkan: Trigger condvar only at frame end.
This commit is contained in:
1 parent
8edc6eaf5e
commit
ec0f640f56
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user