mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Revert "Optick: Remove blocking sleep wait at start of Vulkan clock synchronization"
This reverts commit 1e8899ca86
.
This commit is contained in:
parent
1e8899ca86
commit
bcbc734d94
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue