The open source OpenXR runtime
0
fork

Configure Feed

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

c/multi: Overwrite stale scheduled frames

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
c9c362e1 b0c9f2a1

+7
+7
src/xrt/compositor/multi/comp_multi_compositor.c
··· 431 431 432 432 // Block here if the scheduled slot is not clear. 433 433 while (mc->scheduled.active) { 434 + 435 + // Replace the scheduled frame if it's in the past. 436 + uint64_t now_ns = os_monotonic_get_ns(); 437 + if (mc->scheduled.display_time_ns < now_ns) { 438 + break; 439 + } 440 + 434 441 os_mutex_unlock(&mc->slot_lock); 435 442 436 443 os_nanosleep(U_TIME_1MS_IN_NS);