···495 // TODO: let the user specify which distortion is in use with an env var,
496 // and interpolate the distortions for the user's specific eye relief setting
497 hmd->distortion_in_use = 1;
498-}
···495 // TODO: let the user specify which distortion is in use with an env var,
496 // and interpolate the distortions for the user's specific eye relief setting
497 hmd->distortion_in_use = 1;
498+}
+8
src/xrt/drivers/rift/rift_hmd.c
···450451 os_thread_helper_lock(&hmd->sensor_thread);
4520000453 int result = 0;
0454 int ticks = 0;
0455456 while (os_thread_helper_is_running_locked(&hmd->sensor_thread) && result >= 0) {
457 os_thread_helper_unlock(&hmd->sensor_thread);
···459 result = sensor_thread_tick(hmd);
460461 os_thread_helper_lock(&hmd->sensor_thread);
0462 ticks += 1;
0463 }
464465 os_thread_helper_unlock(&hmd->sensor_thread);
···450451 os_thread_helper_lock(&hmd->sensor_thread);
452453+ // uncomment this to be able to see if things are actually progressing as expected in a debugger, without having
454+ // to count yourself
455+ // #define TICK_DEBUG
456+457 int result = 0;
458+#ifdef TICK_DEBUG
459 int ticks = 0;
460+#endif
461462 while (os_thread_helper_is_running_locked(&hmd->sensor_thread) && result >= 0) {
463 os_thread_helper_unlock(&hmd->sensor_thread);
···465 result = sensor_thread_tick(hmd);
466467 os_thread_helper_lock(&hmd->sensor_thread);
468+#ifdef TICK_DEBUG
469 ticks += 1;
470+#endif
471 }
472473 os_thread_helper_unlock(&hmd->sensor_thread);