Revert "Optick: Remove blocking sleep wait at start of Vulkan clock synchronization"

This reverts commit 1e8899ca86.
This commit is contained in:
Stephen Saunders 2024-03-05 14:44:29 -05:00
parent 1e8899ca86
commit bcbc734d94

View file

@ -500,6 +500,7 @@ namespace Optick
// SRS - Improve GPU to CPU clock offset calibration by using Vulkan events
// thanks to cdwfs for concept at https://gist.github.com/cdwfs/4222ca09cb259f8dd50f7f2cf7d09179
std::this_thread::sleep_for(std::chrono::seconds(1));
(*vulkanFunctions.vkSetEvent)(Device, nodePayloads[nodeIndex]->event);
clock.timestampCPU = GetHighPrecisionTime();
(*vulkanFunctions.vkWaitForFences)(Device, 1, &Fence, 1, (uint64_t)-1);