The open source OpenXR runtime

u/[rt|ft]: Adjust margins

This commit adds more margins to both the app and the compositor, with the
compute work this yeilds basically no frame misses for the compositor.

+2 -2
+1 -1
src/xrt/auxiliary/util/u_timing_frame.c
··· 611 // When not missing frames but adjusting app time at these increments 612 dt->adjust_non_miss_ns = get_percent_of_time(estimated_frame_period_ns, 2); 613 // Extra margin that is added to app time. 614 - dt->margin_ns = get_percent_of_time(estimated_frame_period_ns, 8); 615 616 *out_uft = &dt->base; 617
··· 611 // When not missing frames but adjusting app time at these increments 612 dt->adjust_non_miss_ns = get_percent_of_time(estimated_frame_period_ns, 2); 613 // Extra margin that is added to app time. 614 + dt->margin_ns = U_TIME_1MS_IN_NS; 615 616 *out_uft = &dt->base; 617
+1 -1
src/xrt/auxiliary/util/u_timing_render.c
··· 413 rt->base.destroy = rt_destroy; 414 rt->app.cpu_time_ns = U_TIME_1MS_IN_NS * 2; 415 rt->app.draw_time_ns = U_TIME_1MS_IN_NS * 2; 416 - rt->app.margin_ns = U_TIME_1MS_IN_NS / 2; 417 418 for (size_t i = 0; i < ARRAY_SIZE(rt->frames); i++) { 419 rt->frames[i].state = U_RT_READY;
··· 413 rt->base.destroy = rt_destroy; 414 rt->app.cpu_time_ns = U_TIME_1MS_IN_NS * 2; 415 rt->app.draw_time_ns = U_TIME_1MS_IN_NS * 2; 416 + rt->app.margin_ns = U_TIME_1MS_IN_NS * 2; 417 418 for (size_t i = 0; i < ARRAY_SIZE(rt->frames); i++) { 419 rt->frames[i].state = U_RT_READY;