···495495 // TODO: let the user specify which distortion is in use with an env var,
496496 // and interpolate the distortions for the user's specific eye relief setting
497497 hmd->distortion_in_use = 1;
498498-}498498+}
+8
src/xrt/drivers/rift/rift_hmd.c
···450450451451 os_thread_helper_lock(&hmd->sensor_thread);
452452453453+ // uncomment this to be able to see if things are actually progressing as expected in a debugger, without having
454454+ // to count yourself
455455+ // #define TICK_DEBUG
456456+453457 int result = 0;
458458+#ifdef TICK_DEBUG
454459 int ticks = 0;
460460+#endif
455461456462 while (os_thread_helper_is_running_locked(&hmd->sensor_thread) && result >= 0) {
457463 os_thread_helper_unlock(&hmd->sensor_thread);
···459465 result = sensor_thread_tick(hmd);
460466461467 os_thread_helper_lock(&hmd->sensor_thread);
468468+#ifdef TICK_DEBUG
462469 ticks += 1;
470470+#endif
463471 }
464472465473 os_thread_helper_unlock(&hmd->sensor_thread);