The open source OpenXR runtime
0
fork

Configure Feed

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

c/main: Use ns_to_ms helper for nominal frame interval

authored by

Christoph Haag and committed by
Jakob Bornecrantz
79fe29f6 fb6cf9b4

+1 -1
+1 -1
src/xrt/compositor/main/comp_compositor.c
··· 1492 1492 1493 1493 struct u_var_timing *ft = U_TYPED_CALLOC(struct u_var_timing); 1494 1494 1495 - float target_frame_time_ms = c->settings.nominal_frame_interval_ns * 1.f / 1000.f * 1.f / 1000.f; 1495 + float target_frame_time_ms = ns_to_ms(c->settings.nominal_frame_interval_ns); 1496 1496 1497 1497 uint64_t now = os_monotonic_get_ns(); 1498 1498 for (int i = 0; i < NUM_FRAME_TIMES; i++) {