Simplify async render flushing code

This commit is contained in:
2026-06-03 05:03:22 +02:00
parent fca6ed43cc
commit c2ec3fe2cb
3 changed files with 14 additions and 6 deletions
+7
View File
@@ -507,3 +507,10 @@ RenderContextBatch::RenderContextBatch(const RenderContext& context)
Contexts.Add(context);
EnableAsync = JobSystem::GetThreadsCount() > 1;
}
void RenderContextBatch::FlushWaitLabels()
{
for (const int64 label : WaitLabels)
JobSystem::Wait(label);
WaitLabels.Clear();
}