The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/vk: Use os_time helper to get ns per qpc tick

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2491>

authored by

Jakob Bornecrantz and committed by
Marge Bot
6cd8cca4 208f901c

+1 -9
+1 -9
src/xrt/auxiliary/vk/vk_time.c
··· 32 32 33 33 #elif defined(XRT_OS_WINDOWS) 34 34 35 - static int64_t ns_per_qpc_tick = 0; 36 - if (ns_per_qpc_tick == 0) { 37 - // Fixed at startup, so we can cache this. 38 - LARGE_INTEGER freq; 39 - QueryPerformanceFrequency(&freq); 40 - ns_per_qpc_tick = U_1_000_000_000 / freq.QuadPart; 41 - } 42 - 43 - return ticks * ns_per_qpc_tick; 35 + return ticks * os_ns_per_qpc_tick_get(); 44 36 45 37 #else 46 38 #error "Vulkan timestamp domain needs porting"