The open source OpenXR runtime
0
fork

Configure Feed

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

u/pacing: Use helpers for ms <-> ns conversion

+2 -2
+2 -2
src/xrt/auxiliary/util/u_pacing_compositor_fake.c
··· 92 92 calc_display_time(struct fake_timing *ft, uint64_t present_time_ns) 93 93 { 94 94 double offset_ms = ft->present_to_display_offset_ms.val; 95 - uint64_t offset_ns = (uint64_t)(offset_ms * (double)U_TIME_1MS_IN_NS); 95 + uint64_t offset_ns = time_ms_f_to_ns(offset_ms); 96 96 return present_time_ns + offset_ns; 97 97 } 98 98 ··· 234 234 // not associating with frame IDs right now. 235 235 (void)frame_id; 236 236 237 - double offset_ms = (double)present_to_display_offset_ns / (double)U_TIME_1MS_IN_NS; 237 + double offset_ms = time_ns_to_ms_f(present_to_display_offset_ns); 238 238 239 239 ft->present_to_display_offset_ms.val = offset_ms; 240 240 }