mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-22 13:05:57 +00:00
Implement Native NVIDIA Reflex Low Latency (VK_NV_low_latency2)
This commit is contained in:
1 parent
0f65b4ee07
commit
51fa4a982b
10 files changed
+137
-5
No files matched your search
@@ -439,9 +439,11 @@ uint64_t vk_sync_submit(const uint64_t *handles, int n) {
|
||||
.pCommandBufferInfos = pro ? cbi : cbi + 1, .signalSemaphoreInfoCount = 1,
|
||||
.pSignalSemaphoreInfos = &sig};
|
||||
ts_submitted();
|
||||
if (recorded) vk_reflex_marker(2); // VK_LATENCY_MARKER_RENDERSUBMIT_START_NV
|
||||
vk_queue_lock();
|
||||
VkResult r = vkQueueSubmit2(c->gfx_queue, 1, &si, VK_NULL_HANDLE);
|
||||
vk_queue_unlock();
|
||||
if (recorded) vk_reflex_marker(3); // VK_LATENCY_MARKER_RENDERSUBMIT_END_NV
|
||||
if (r != VK_SUCCESS) {
|
||||
vk_device_fault_report(r);
|
||||
rt_fatal("vk: vkQueueSubmit2 of value %llu failed (%d)", (unsigned long long)fence, (int)r);
|
||||
|
||||
Reference in new issue
Block a user