The open source OpenXR runtime
0
fork

Configure Feed

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

c/main: Only do early acquire if we are ready

+5 -1
+5 -1
src/xrt/compositor/main/comp_renderer.c
··· 2072 2072 * For direct mode this makes us wait until the last frame has been 2073 2073 * actually shown to the user, this avoids us missing that we have 2074 2074 * missed a frame and miss-predicting the next frame. 2075 + * 2076 + * Only do this if we are ready. 2075 2077 */ 2076 - renderer_acquire_swapchain_image(r); 2078 + if (comp_target_check_ready(r->c->target)) { 2079 + renderer_acquire_swapchain_image(r); 2080 + } 2077 2081 2078 2082 comp_target_update_timings(ct); 2079 2083 }