The open source OpenXR runtime
0
fork

Configure Feed

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

d/wmr: Increase display init sleep and also add debug variable to control it

+6 -2
+6 -2
src/xrt/drivers/wmr/wmr_hmd.c
··· 67 67 //! Specifies whether the user wants to use a SLAM tracker. 68 68 DEBUG_GET_ONCE_BOOL_OPTION(wmr_slam, "WMR_SLAM", true) 69 69 70 + //! Specifies whether the user wants to use a SLAM tracker. 71 + DEBUG_GET_ONCE_NUM_OPTION(sleep_seconds, "WMR_DISPLAY_INIT_SLEEP_SECONDS", 4) 72 + 70 73 //! Specifies whether the user wants to use the hand tracker. 71 74 DEBUG_GET_ONCE_BOOL_OPTION(wmr_handtracking, "WMR_HANDTRACKING", true) 72 75 ··· 680 683 "Sleep until the HMD display is powered up so, the available displays can be enumerated by the host " 681 684 "system."); 682 685 683 - // Two seconds seems to be needed, 1 was not enough. 684 - os_nanosleep(U_TIME_1MS_IN_NS * 2000); 686 + // Get the sleep amount, then sleep. One or two seconds was not enough. 687 + uint64_t seconds = debug_get_num_option_sleep_seconds(); 688 + os_nanosleep(U_TIME_1S_IN_NS * seconds); 685 689 686 690 return 0; 687 691 }