The open source OpenXR runtime
0
fork

Configure Feed

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

u/render_timing: Paranoia

authored by

Pete Black and committed by
Jakob Bornecrantz
751fdb28 20ee4114

+5
+5
src/xrt/auxiliary/util/u_render_timing.c
··· 36 36 { 37 37 uint64_t val = urth->last_input; 38 38 39 + if (urth->period == 0) { 40 + return then_ns; 41 + } 42 + 39 43 while (val <= then_ns) { 40 44 val += urth->period; 41 45 assert(val != 0); 42 46 } 47 + 43 48 44 49 return val; 45 50 }