The open source OpenXR runtime
0
fork

Configure Feed

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

u/pacing: Add env variable to set present to display offset

+5 -1
+5 -1
src/xrt/auxiliary/util/u_pacing_compositor_fake.c
··· 29 29 * 30 30 */ 31 31 32 + DEBUG_GET_ONCE_FLOAT_OPTION(present_to_display_offset_ms, "U_PACING_COMP_PRESENT_TO_DISPLAY_OFFSET_MS", 4.0f) 32 33 DEBUG_GET_ONCE_FLOAT_OPTION(min_comp_time_ms, "U_PACING_COMP_MIN_TIME_MS", 3.0f) 33 34 34 35 /*! ··· 275 276 // To make sure the code can start from a non-zero frame id. 276 277 ft->frame_id_generator = 5; 277 278 279 + // An arbitrary guess, that happens to be based on Index. 280 + float present_to_display_offset_ms = debug_get_float_option_present_to_display_offset_ms(); 281 + 278 282 // Present to display offset, aka vblank to pixel turning into photons. 279 283 ft->present_to_display_offset_ms = (struct u_var_draggable_f32){ 280 - .val = 4.0, // An arbitrary guess, that happens to be based on Index. 284 + .val = present_to_display_offset_ms, 281 285 .min = 1.0, // A lot of things assumes this is not negative. 282 286 .step = 0.1, 283 287 .max = +40.0,