From 0ea3eedad22fbb0d9dcdc9669bb8c273129085e1 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 Aug 2024 20:11:10 -0700 Subject: [PATCH] Removed unnecessary condition var wait. --- OpenTESArena/src/Rendering/SoftwareRenderer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/OpenTESArena/src/Rendering/SoftwareRenderer.cpp b/OpenTESArena/src/Rendering/SoftwareRenderer.cpp index 3a2009801..ca8526b4b 100644 --- a/OpenTESArena/src/Rendering/SoftwareRenderer.cpp +++ b/OpenTESArena/src/Rendering/SoftwareRenderer.cpp @@ -4106,14 +4106,9 @@ void SoftwareRenderer::submitFrame(const RenderCamera &camera, const RenderFrame int remainingDrawCallCount = drawCalls.getCount(); constexpr int maxDrawCallsPerLoop = 4096; - // Wait for all workers to be ready to process draw calls (only an extra sync point for every set of draw calls). - g_directorCondVar.wait(lock, []() - { - return std::all_of(g_workers.begin(), g_workers.end(), [](const Worker &worker) { return worker.isReadyToStartFrame; }); - }); - while (remainingDrawCallCount > 0) { + // Wait for all workers to be ready to process this set of draw calls. g_directorCondVar.wait(lock, []() { return std::all_of(g_workers.begin(), g_workers.end(), [](const Worker &worker) { return worker.isReadyToStartFrame; });