14 Jan
2026
14 Jan
'26
5:21 p.m.
Marc-Aurel Zent (@mzent) commented about dlls/winevulkan/vulkan.c:
static inline uint64_t convert_monotonic_timestamp(uint64_t value) { - return value / (NANOSECONDS_IN_A_SECOND / TICKSPERSEC); + ULONG64 offset = 0;
With https://gitlab.winehq.org/wine/wine/-/merge_requests/9875 something like this should simplify the change a lot: ``` static inline uint64_t convert_monotonic_timestamp(uint64_t value) { KUSER_SHARED_DATA *user_shared_data = (void *)0x7ffe0000; return value / (NANOSECONDS_IN_A_SECOND / TICKSPERSEC) + user_shared_data->InterruptTimeBias; } ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9859#note_126688