···6767//! Specifies whether the user wants to use a SLAM tracker.
6868DEBUG_GET_ONCE_BOOL_OPTION(wmr_slam, "WMR_SLAM", true)
69697070+//! Specifies whether the user wants to use a SLAM tracker.
7171+DEBUG_GET_ONCE_NUM_OPTION(sleep_seconds, "WMR_DISPLAY_INIT_SLEEP_SECONDS", 4)
7272+7073//! Specifies whether the user wants to use the hand tracker.
7174DEBUG_GET_ONCE_BOOL_OPTION(wmr_handtracking, "WMR_HANDTRACKING", true)
7275···680683 "Sleep until the HMD display is powered up so, the available displays can be enumerated by the host "
681684 "system.");
682685683683- // Two seconds seems to be needed, 1 was not enough.
684684- os_nanosleep(U_TIME_1MS_IN_NS * 2000);
686686+ // Get the sleep amount, then sleep. One or two seconds was not enough.
687687+ uint64_t seconds = debug_get_num_option_sleep_seconds();
688688+ os_nanosleep(U_TIME_1S_IN_NS * seconds);
685689686690 return 0;
687691}