Fix GPU Tasks queue to be executed on frame start, rather than end

This commit is contained in:
Wojtek Figat
2024-04-25 17:10:39 +02:00
parent 10c47b8c2a
commit 97078cda7e
5 changed files with 24 additions and 22 deletions

View File

@@ -30,6 +30,11 @@ void GPUTask::Execute(GPUTasksContext* context)
// Save task completion point (for synchronization)
_syncPoint = context->GetCurrentSyncPoint();
_context = context;
if (_syncLatency == 0)
{
// No delay on sync
Sync();
}
}
}